Struct PointerOption
Defines a pointer option to assign to a controller.
Inherited Members
Namespace: Microsoft.MixedReality.Toolkit.Input
Assembly: cs.temp.dll.dll
Syntax
public struct PointerOption
Constructors
PointerOption(SupportedControllerType, Handedness, GameObject)
Constructor.
Declaration
public PointerOption(SupportedControllerType controllerType, Handedness handedness, GameObject pointerPrefab)
Parameters
Type | Name | Description |
---|---|---|
SupportedControllerType | controllerType | |
Handedness | handedness | |
GameObject | pointerPrefab |
Properties
ControllerType
The type of Controller this pointer can be attached to at runtime.
Declaration
public SupportedControllerType ControllerType { get; }
Property Value
Type | Description |
---|---|
SupportedControllerType |
Remarks
If None is selected, then it will attach to any controller type
Handedness
Defines valid hand(s) to create the pointer prefab on.
Declaration
public Handedness Handedness { get; }
Property Value
Type | Description |
---|---|
Handedness |
PointerPrefab
The prefab with an IMixedRealityPointer component to create when a valid controller becomes available.
Declaration
public GameObject PointerPrefab { get; }
Property Value
Type | Description |
---|---|
GameObject |