Back to Filament

setLayerMask

docs/android/dokka/filament-android/com.google.android.filament/-skybox/set-layer-mask.md

1.75.0889 B
Original Source

//filament-android/com.google.android.filament/Skybox/setLayerMask

setLayerMask

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

Sets bits in a visibility mask. By default, this is 0x1.

This provides a simple mechanism for hiding or showing this Skybox in a Scene.

For example, to set bit 1 and reset bits 0 and 2 while leaving all other bits unaffected, call: setLayerMask(7, 2).

Parameters

main

selectthe set of bits to affect
valuesthe replacement values for the affected bits

See also

View