C# Class Microsoft.MixedReality.Toolkit.UI.ReceiverBase

The base class for all receivers that attach to Interactables
Show file Open project: nielsboecker/HoloRepository-HoloLens Class Usage Examples

Public Properties

Property Type Description
HideUnityEvents bool
Host MonoBehaviour
Name string

Protected Properties

Property Type Description
uEvent UnityEvent

Public Methods

Method Description
OnClick ( Microsoft.MixedReality.Toolkit.UI.InteractableStates state, Microsoft.MixedReality.Toolkit.UI.Interactable source, IMixedRealityPointer pointer = null ) : void

A click event happened

OnUpdate ( Microsoft.MixedReality.Toolkit.UI.InteractableStates state, Microsoft.MixedReality.Toolkit.UI.Interactable source ) : void

The state has changed

OnVoiceCommand ( Microsoft.MixedReality.Toolkit.UI.InteractableStates state, Microsoft.MixedReality.Toolkit.UI.Interactable source, string command, int index, int length = 1 ) : void

A voice command was called

ReceiverBase ( UnityEvent ev ) : Microsoft.MixedReality.Toolkit.Input

Method Details

OnClick() public method

A click event happened
public OnClick ( Microsoft.MixedReality.Toolkit.UI.InteractableStates state, Microsoft.MixedReality.Toolkit.UI.Interactable source, IMixedRealityPointer pointer = null ) : void
state Microsoft.MixedReality.Toolkit.UI.InteractableStates
source Microsoft.MixedReality.Toolkit.UI.Interactable
pointer IMixedRealityPointer
return void

OnUpdate() public abstract method

The state has changed
public abstract OnUpdate ( Microsoft.MixedReality.Toolkit.UI.InteractableStates state, Microsoft.MixedReality.Toolkit.UI.Interactable source ) : void
state Microsoft.MixedReality.Toolkit.UI.InteractableStates
source Microsoft.MixedReality.Toolkit.UI.Interactable
return void

OnVoiceCommand() public method

A voice command was called
public OnVoiceCommand ( Microsoft.MixedReality.Toolkit.UI.InteractableStates state, Microsoft.MixedReality.Toolkit.UI.Interactable source, string command, int index, int length = 1 ) : void
state Microsoft.MixedReality.Toolkit.UI.InteractableStates
source Microsoft.MixedReality.Toolkit.UI.Interactable
command string
index int
length int
return void

ReceiverBase() public method

public ReceiverBase ( UnityEvent ev ) : Microsoft.MixedReality.Toolkit.Input
ev UnityEvent
return Microsoft.MixedReality.Toolkit.Input

Property Details

HideUnityEvents public property

public bool HideUnityEvents
return bool

Host public property

public MonoBehaviour Host
return MonoBehaviour

Name public property

public string Name
return string

uEvent protected property

protected UnityEvent uEvent
return UnityEvent