// Instantiate a new button action
var buttonAction = new ControllerButtonsMapper.ButtonClickAction
{
Title = "Spawn Object",
Button = OVRInput.Button.PrimaryIndexTrigger,
ButtonMode = ControllerButtonsMapper.ButtonClickAction.ButtonClickMode.OnButtonUp,
Callback = new UnityEvent()
};ButtonClickActions
: List< ButtonClickAction >
[Get][Set] |
A list of ButtonClickAction to trigger.
Signature
List<ButtonClickAction> ButtonClickActions |
// Instantiate a new button action
var buttonAction = new ControllerButtonsMapper.ButtonClickAction
{
Title = "Spawn Object",
Button = OVRInput.Button.PrimaryIndexTrigger,
ButtonMode = ControllerButtonsMapper.ButtonClickAction.ButtonClickMode.OnButtonUp,
Callback = new UnityEvent()
};Button
: OVRInput.Button |
Sets the button that will trigger the Callback when the ButtonMode is detected (usually ButtonMode.OnButtonUp).
Signature
OVRInput.Button Button |
ButtonMode
: ButtonClickMode |
Button click type: OnButtonUp, OnButtonDown, and OnButton.
Use OnButtonUp to trigger the callback when the user releases the button.
Signature
ButtonClickMode ButtonMode |
Callback
: UnityEvent |
Dispatches when Button matches the chosen ButtonMode.
Signature
UnityEvent Callback |
Title
: string |
A title for this button action.
Signature
string Title |
| Member |
|---|
OnButtonUp |
OnButtonDown |
OnButton |