ToggleObjects.SetObject
public static bool SetObject(GameObject gameObject, bool active)
Sets the state of the provided GameObject and syncs for all users
Returns: True if object is in the scene and is set successfully
Parameter | Description |
---|---|
gameObject | The object to set |
active | New status |
Sets the state of the provided Behaviour and syncs for all users
Returns: True if object is in the scene and is set successfully
Parameter | Description |
---|---|
behaviour | |
enabled |
Sets the state of the provided Renderer and syncs for all users
Returns: True if object is in the scene and is set successfully
Parameter | Description |
---|---|
renderer | |
enabled |
Sets the state of the provided Collider and syncs for all users
Returns: True if object is in the scene and is set successfully
Parameter | Description |
---|---|
collider | |
enabled |