Back to Filament

getInstance

docs/android/dokka/filament-android/com.google.android.filament/-light-manager/get-instance.md

1.75.0758 B
Original Source

//filament-android/com.google.android.filament/LightManager/getInstance

getInstance

[main]
open fun getInstance(entity: Int): Int

Gets an Instance representing the Light component associated with the given Entity.

Return

An Instance object, which represents the Light component associated with the Entity entity. The instance is 0 if the component doesn't exist.

Parameters

main

entityAn Entity.

See also

hasComponent