Class RayPins
Implements
Namespace: Microsoft.MixedReality.WorldLocking.Examples
Assembly: cs.temp.dll.dll
Syntax
public class RayPins : InputSystemGlobalHandlerListener
Fields
spacePinPoints
Global position of each of the space pins points can be matched to a ray cast against the environment.
Declaration
public List<Transform> spacePinPoints
Field Value
Type | Description |
---|---|
List<Transform> |
Properties
ActivePin
Accessor for currently active pin.
Declaration
public int ActivePin { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
Methods
ClearAll()
Disable the effects of all pins, as if they had never been set.
Declaration
public void ClearAll()
CreateSpacePins()
Destroy any existing pins, and create new pins, one for each spacePinPoint.
Declaration
public bool CreateSpacePins()
Returns
Type | Description |
---|---|
Boolean | True on success. |
Remarks
If the spacePinPoint list is modified from script, CreateSpacePins should be called to resynchronize.
OnPointerClicked(MixedRealityPointerEventData)
Process pointer clicked event if ray cast has result.
Declaration
public void OnPointerClicked(MixedRealityPointerEventData eventData)
Parameters
Type | Name | Description |
---|---|---|
MixedRealityPointerEventData | eventData |
OnPointerDown(MixedRealityPointerEventData)
No-op on pointer down.
Declaration
public void OnPointerDown(MixedRealityPointerEventData eventData)
Parameters
Type | Name | Description |
---|---|---|
MixedRealityPointerEventData | eventData |
OnPointerDragged(MixedRealityPointerEventData)
No-op on pointer drag.
Declaration
public void OnPointerDragged(MixedRealityPointerEventData eventData)
Parameters
Type | Name | Description |
---|---|---|
MixedRealityPointerEventData | eventData |
OnPointerUp(MixedRealityPointerEventData)
No-op on pointer up.
Declaration
public void OnPointerUp(MixedRealityPointerEventData eventData)
Parameters
Type | Name | Description |
---|---|---|
MixedRealityPointerEventData | eventData |
RegisterHandlers()
Declaration
protected override void RegisterHandlers()
SetActivePin(Int32)
Function for setting active pin from MRTK GUI callbacks.
Declaration
public void SetActivePin(int i)
Parameters
Type | Name | Description |
---|---|---|
Int32 | i | The new current pin. |
Start()
Create a shared orienter, and create space pins for any spacePinPoints set in the inspector.
Declaration
protected override void Start()
UnregisterHandlers()
Declaration
protected override void UnregisterHandlers()