Immerse SDK
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

ToggleObjectExtensions.SetEnabledSync

public static bool SetEnabledSync(Behaviour behaviour, bool enabled)

Set the state of the provided Behaviour for all users

Parameter Description
behaviour The object to set
enabled New status

public static bool SetEnabledSync(Renderer renderer, bool enabled)

Set the state of the provided Renderer for all users

Parameter Description
renderer The object to set
enabled New status

public static bool SetEnabledSync(Collider collider, bool enabled)

Set the state of the provided Collider for all users

Parameter Description
collider The object to set
enabled New status