Class UsesGameObjectLockingMethods
Namespace: Unity.Labs.EditorXR.Interfaces
Syntax
public static class UsesGameObjectLockingMethods
Methods
IsLocked(IUsesGameObjectLocking, GameObject)
Check whether a GameObject is locked
Declaration
public static bool IsLocked(this IUsesGameObjectLocking user, GameObject go)
Parameters
Type | Name | Description |
---|---|---|
IUsesGameObjectLocking | user | The functionality user |
GameObject | go | GameObject locked status to test |
Returns
Type | Description |
---|---|
Boolean |
SetLocked(IUsesGameObjectLocking, GameObject, Boolean)
Set a GameObject's locked status
Declaration
public static void SetLocked(this IUsesGameObjectLocking user, GameObject go, bool locked)
Parameters
Type | Name | Description |
---|---|---|
IUsesGameObjectLocking | user | The functionality user |
GameObject | go | The GameObject to set locked or unlocked |
Boolean | locked | Locked or unlocked status |