Class DockPosition
Represents a position where a Dockable object can be docked. This component also adds a Collider and a Rigidbody, if they're not already present.
Namespace: Microsoft.MixedReality.Toolkit.Experimental.UI
Assembly: cs.temp.dll.dll
Syntax
public class DockPosition : MonoBehaviour
Properties
DockedObject
The object that is currently docked in this position (can be null).
Declaration
public Dockable DockedObject { get; set; }
Property Value
Type | Description |
---|---|
Dockable |
IsOccupied
True if this position is occupied, false otherwise.
Declaration
public bool IsOccupied { get; }
Property Value
Type | Description |
---|---|
Boolean |
Methods
Awake()
Ensure this object has a triggering collider, and ensure that this object doesn't block manipulations.
Declaration
public void Awake()
Start()
If an object was set to be docked to this at start up, ensure it's docked.
Declaration
public void Start()