Class ObjectCursor
The object cursor can switch between different game objects based on its state. It simply links the game object to set to active with its associated cursor state.
Implements
IEventSystemHandler
MonoBehaviour
Inherited Members
Namespace: Microsoft.MixedReality.Toolkit.Input
Assembly: cs.temp.dll.dll
Syntax
public class ObjectCursor : BaseCursor, IMixedRealityCursor, IMixedRealityFocusChangedHandler, IMixedRealitySourceStateHandler, IMixedRealityPointerHandler, IEventSystemHandler, MonoBehaviour
Fields
CursorStateData
Declaration
public ObjectCursor.ObjectCursorDatum[] CursorStateData
Field Value
| Type | Description |
|---|---|
| ObjectCursor.ObjectCursorDatum[] |
CursorStateData
Declaration
public ObjectCursor.ObjectCursorDatum[] CursorStateData
Field Value
| Type | Description |
|---|---|
| ObjectCursor.ObjectCursorDatum[] |
ParentTransform
Sprite renderer to change. If null find one in children
Declaration
public Transform ParentTransform
Field Value
| Type | Description |
|---|---|
| Transform |
ParentTransform
Sprite renderer to change. If null find one in children
Declaration
public Transform ParentTransform
Field Value
| Type | Description |
|---|---|
| Transform |
Methods
OnCursorStateChange(CursorStateEnum)
Override OnCursorState change to set the correct animation state for the cursor
Declaration
public override void OnCursorStateChange(CursorStateEnum state)
Parameters
| Type | Name | Description |
|---|---|---|
| CursorStateEnum | state |
Overrides
OnCursorStateChange(CursorStateEnum)
Override OnCursorState change to set the correct animation state for the cursor
Declaration
public override void OnCursorStateChange(CursorStateEnum state)
Parameters
| Type | Name | Description |
|---|---|---|
| CursorStateEnum | state |
Overrides
OnEnable()
On enable look for a sprite renderer on children
Declaration
protected override void OnEnable()
Overrides
OnEnable()
On enable look for a sprite renderer on children
Declaration
protected override void OnEnable()
Overrides
Implements
IEventSystemHandler
MonoBehaviour