Class PinManipulator
Helper class to add MRTK object manipulation controls to an object.
Inherited Members
Namespace: Microsoft.MixedReality.WorldLocking.Examples
Assembly: cs.temp.dll.dll
Syntax
public class PinManipulator
Constructors
PinManipulator(Transform, GameObject, ManipulationEndedDelegate)
Backward compat with no specified manipulation started callback.
Declaration
public PinManipulator(Transform ownder, GameObject prefab, ManipulationEndedDelegate ended)
Parameters
Type | Name | Description |
---|---|---|
Transform | ownder | |
GameObject | prefab | The visualization prefab to instantiate. |
ManipulationEndedDelegate | ended | The manipulation ended callback. |
PinManipulator(Transform, GameObject, ManipulationStartedDelegate, ManipulationEndedDelegate)
Constructor accepts readonly dependencies.
Declaration
public PinManipulator(Transform owner, GameObject prefab, ManipulationStartedDelegate started, ManipulationEndedDelegate ended)
Parameters
Type | Name | Description |
---|---|---|
Transform | owner | The object to manipulate. |
GameObject | prefab | The visualization prefab to instantiate. |
ManipulationStartedDelegate | started | The manipulation started callback. |
ManipulationEndedDelegate | ended | The manipulation ended callback. |
Properties
UserOriented
Whether to enable user orientation of the object. If false, only positioning enabled.
Declaration
public bool UserOriented { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Remarks
May be toggled from script during runtime.
Methods
Shutdown()
Cleanup.
Declaration
public virtual void Shutdown()
Startup()
Get set up.
Declaration
public void Startup()
Update()
If active, position and orient the visualization.
Declaration
public virtual void Update()