Back to Filament

getVisibleRenderableCount

docs/android/dokka/filament-android/com.google.android.filament/-view/get-visible-renderable-count.md

1.75.0704 B
Original Source

//filament-android/com.google.android.filament/View/getVisibleRenderableCount

getVisibleRenderableCount

[main]
open fun getVisibleRenderableCount(): Int

Returns the most recent number of visible renderables for the current Scene as calculated the last time Renderer::render() was called with this View and Scene. Returns -1 if the cache is invalid (e.g. before the first render call, or if the scene was detached).

Return

the number of visible renderables, or -1 if no value is available.