Back to Filament

getCameraComponent

docs/android/dokka/filament-android/com.google.android.filament/-engine/get-camera-component.md

1.75.0586 B
Original Source

//filament-android/com.google.android.filament/Engine/getCameraComponent

getCameraComponent

[main]
open fun getCameraComponent(entity: Int): Camera

Returns the Camera component of the given entity.

Return

the Camera component for this entity or null if the entity doesn't have a Camera component

Parameters

main

entityAn entity.