Back to Filament

forEach

docs/android/dokka/filament-android/com.google.android.filament/-scene/for-each.md

1.75.0496 B
Original Source

//filament-android/com.google.android.filament/Scene/forEach

forEach

[main]
open fun forEach(entityProcessor: Scene.EntityProcessor)

Invokes user functor on each entity in the scene. It is not allowed to add or remove an entity from the scene within the functor.

Parameters

main

entityProcessorUser provided functor called for each entity in the scene