Class SpriteCursor
Object that represents a cursor comprised of sprites and colors for each state
Implements
IEventSystemHandler
Inherited Members
Namespace: Microsoft.MixedReality.Toolkit.Input
Assembly: cs.temp.dll.dll
Syntax
public class SpriteCursor : BaseCursor, IMixedRealityCursor, IMixedRealityFocusChangedHandler, IMixedRealitySourceStateHandler, IMixedRealityPointerHandler, IEventSystemHandler
Fields
CursorStateData
Declaration
public SpriteCursor.SpriteCursorDatum[] CursorStateData
Field Value
Type | Description |
---|---|
SpriteCursor.SpriteCursorDatum[] |
TargetRenderer
Sprite renderer to change. If null find one in children
Declaration
public SpriteRenderer TargetRenderer
Field Value
Type | Description |
---|---|
SpriteRenderer |
Methods
OnCursorStateChange(CursorStateEnum)
Override OnCursorState change to set the correct sprite 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
Implements
IEventSystemHandler