Back to Filament

getEntities

docs/android/dokka/filament-android/com.google.android.filament/-scene/get-entities.md

1.75.01.4 KB
Original Source

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

getEntities

[main]
open fun getEntities(outArray: Array<Int>): Array<Int>

Returns the list of all entities in the Scene. If outArray is provided and large enough, it is used to store the list and returned, otherwise a new array is allocated and returned.

Return

outArray if it was used or a newly allocated array.

Parameters

main

outArrayan array to store the list of entities in the scene.

See also

getEntityCount

[main]
open fun getEntities(): Array<Int>

Returns the list of all entities in the Scene in a newly allocated array.

Return

an array containing the list of all entities in the scene.

See also

getEntityCount