Class Dock
This control enables moving objects in and out of predetermined positions, to create palettes, shelves and navigation bars.
Namespace: Microsoft.MixedReality.Toolkit.Experimental.UI
Assembly: cs.temp.dll.dll
Syntax
public class Dock : MonoBehaviour
Properties
DockPositions
A read-only list of possible positions in this dock.
Declaration
public ReadOnlyCollection<DockPosition> DockPositions { get; }
Property Value
Type | Description |
---|---|
ReadOnlyCollection<DockPosition> |
Methods
TryMoveToFreeSpace(DockPosition)
Moves elements near the desired position to make space for a new element, if possible.
Declaration
public bool TryMoveToFreeSpace(DockPosition position)
Parameters
Type | Name | Description |
---|---|---|
DockPosition | position | The desired position where an object wants to be docked. |
Returns
Type | Description |
---|---|
Boolean | Returns true if the desired position is now available, false otherwise. |