Click or drag to resize

LayersToggleLayer Method (Int32, Int32, Boolean)

Used to toggle a layer on/off

Namespace:  ImmerseSDK
Assembly:  ImmerseSDK.App (in ImmerseSDK.App.dll) Version: 3.9.0.0 (3.9.0.0)
Syntax
C#
public static int ToggleLayer(
	int mask,
	int layer,
	bool enable
)

Parameters

mask
Type: SystemInt32
Current mask
layer
Type: SystemInt32
Layer that should be toggled
enable
Type: SystemBoolean
If the layer should be enabled or disabled

Return Value

Type: Int32
New mask where the layer has been set to the enable value
See Also