DockPosition Class

Definition

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.

C++
public ref class DockPosition : UnityEngine::MonoBehaviour
Inheritance
UnityEngine.MonoBehaviour
DockPosition
Attributes
UnityEngine.AddComponentMenuAttribute UnityEngine.RequireComponentAttribute

Constructors

Properties

DockedObject

The object that is currently docked in this position (can be null).

IsOccupied

True if this position is occupied, false otherwise.

Methods

Awake()

Ensure this object has a triggering collider, and ensure that this object doesn't block manipulations.

Start()

If an object was set to be docked to this at start up, ensure it's docked.

Applies to

Produit Versions
MRTK2 Unity 2018 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0
MRTK2 Unity 2019 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0
MRTK2 Unity 2020 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0

See also