Back to Filament

setScene

docs/android/dokka/filament-android/com.google.android.filament/-view/set-scene.md

1.75.0629 B
Original Source

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

setScene

[main]
open fun setScene(scene: Scene)

Sets this View instance's Scene.

This method associates the specified Scene with this View. Note that a particular scene can be associated with several View instances. To remove an existing association, simply pass null.

The View does not take ownership of the Scene pointer. Before destroying a Scene, be sure to remove it from all assoicated Views.

See also

getScene