Back to Filament

setVisibleLayers

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

1.75.01005 B
Original Source

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

setVisibleLayers

[main]
open fun setVisibleLayers(select: Int, values: Int)

Sets which layers are visible.

Renderable objects can have one or several layers associated to them. Layers are represented with an 8-bits bitmask, where each bit corresponds to a layer. By default all layers are visible.

Parameters

main

selecta bitmask specifying which layer to set or clear using values.
valuesa bitmask where each bit sets the visibility of the corresponding layer (1: visible, 0: invisible), only layers in select are affected.

See also

RenderableManager