C# Class SelectedObjectMessageSender

SelectedObjectMessageSender class sends a Unity message to currently selected object. Object selection is controlled via OnSelectObject and OnClearSelection events. Object selection and messages are triggered using voice commands, so keyword responses need to be registered in KeywordManager.
Inheritance: MonoBehaviour
Mostrar archivo Open project: Microsoft/HoloToolkit-Unity

Public Methods

Method Description
OnClearSelection ( ) : void

Clears currently selected object.

OnSelectObject ( ) : void

Sets selection to currently focused object.

SendMessageToSelectedObject ( string message ) : void

Sends message to currently selected object.

Method Details

OnClearSelection() public method

Clears currently selected object.
public OnClearSelection ( ) : void
return void

OnSelectObject() public method

Sets selection to currently focused object.
public OnSelectObject ( ) : void
return void

SendMessageToSelectedObject() public method

Sends message to currently selected object.
public SendMessageToSelectedObject ( string message ) : void
message string Message to send
return void