ScriptedInputModule Methods |
The ScriptedInputModule type exposes the following members.
Name | Description | |
---|---|---|
CustomHandStateToggle |
When true the following will happen:
- If in the default (or other exitable) hand state, then the first available custom hand state will be shown.
- If already in a custom hand state, then the next available custom hand state will be shown.
- If no further custom hand states are available, then the previous built in state will be returned to.
(Overrides InputModuleCustomHandStateToggle.) | |
GesturePoint |
Indicates whether a pointing gesture should be entered on the hand associated with this controller
(Overrides InputModuleGesturePoint(Boolean).) | |
GestureUnPoint |
Indicates whether a pointing gesture should be exited on the hand associated with this controller
(Overrides InputModuleGestureUnPoint(Boolean).) | |
HandGrab |
Indicates whether input on this controller has caused a grabbing state to be entered on the associated hand
(Overrides InputModuleHandGrab.) | |
HandGripAmount |
Indicates the amount of grip the hand associated with this controller has from inputs in the current frame. Returns a float value between 0 (no grip) and 1 (fully gripped)
(Overrides InputModuleHandGripAmount.) | |
HandRelease |
Indicates whether input on this controller has caused a grabbing state to be exited on the associated hand
(Overrides InputModuleHandRelease.) | |
HandReleaseToolPickup |
Indicates whether input on this controller has caused a grabbing state for ToolPickup classes to be exited on the associated hand
(Overrides InputModuleHandReleaseToolPickup.) | |
HasFrameBeenHandled |
Returns true if the frame has been processed since the last clear
(Overrides InputModuleHasFrameBeenHandled.) | |
Initialize |
Initialises the input module. This is called by our internal system.
(Overrides InputModuleInitialize(ControllerLocal).) | |
InputFrameHandled |
This in only used in testing by the sdk. Please do not call this method manually.
(Overrides InputModuleInputFrameHandled.) | |
IsVibrating | ||
SelectionEnd |
Indicates whether controller input has caused the selection tool to stop selecting objects
(Overrides InputModule.SelectionEnd.) | |
SelectionStart |
Indicates whether controller input should cause the selection tool to begin selecting objects
(Overrides InputModule.SelectionStart.) | |
SelectionToolDisable |
Indicates whether the "Collaborate" selection tool should be hidden on the hand associated with this controller
(Overrides InputModule.SelectionToolDisable.) | |
SelectionToolEnable |
Indicates whether the "Collaborate" selection tool should be displayed on the hand associated with this controller
(Overrides InputModule.SelectionToolEnable.) | |
SelectionToolOrbAmount |
Indicates the amount the selection tool orb should change in size this frame based on controller input
(Overrides InputModule.SelectionToolOrbAmount.) | |
SelectionToolTriggerAmount |
Indicates how far the selection tool trigger should be pressed based on controller input from the current frame
(Overrides InputModule.SelectionToolTriggerAmount.) | |
SelectionUpdate |
Indicates whether controller input has enabled the selection tool to continue selecting objects
(Overrides InputModule.SelectionUpdate.) | |
SetCustomHandStateToggle |
Set the value
| |
SetGesturePoint |
Set the value
| |
SetGestureUnPoint |
Set the value
| |
SetHandGrab |
Set the value
| |
SetHandGripAmount |
Set the value
| |
SetHandRelease |
Set the value
| |
SetHandReleaseToolPickup |
Set the value
| |
SetIsVibrating |
Set the value
| |
SetSelectionEnd |
Set the value
| |
SetSelectionStart |
Set the value
| |
SetSelectionToolDisable |
Set the value
| |
SetSelectionToolEnable |
Set the value
| |
SetSelectionToolOrbAmount |
Set the value
| |
SetSelectionToolTriggerAmount |
Set the value
| |
SetSelectionUpdate |
Set the value
| |
SetTeleportCancel |
Set the value
| |
SetTeleportChoose |
Set the value
| |
SetTeleportSeek |
Set the value
| |
SetUIPress |
Set the value
| |
SetUIRelease |
Set the value
| |
TeleportCancel |
Indicates whether controller input has caused the teleport seek state to be cancelled
(Overrides InputModuleTeleportCancel.) | |
TeleportChoose |
Indicates whether controller input has caused a teleport target to be chosen
(Overrides InputModuleTeleportChoose.) | |
TeleportSeek |
Indicates whether controller input has caused the teleport seek state to be entered
(Overrides InputModuleTeleportSeek.) | |
ToString |
Helps in debugging and console output. Prints out the device index.
(Overrides UnityEngine.Object.ToString.) | |
UIPress |
Indicates whether controller input should cause a Menu UI press event
(Overrides InputModuleUIPress.) | |
UIRelease |
Indicates whether controller input should cause a Menu UI release event
(Overrides InputModuleUIRelease.) | |
Update |
Unity component method
| |
Vibrate |
Vibrates the controller
(Overrides InputModuleVibrate(Single).) |
Name | Description | |
---|---|---|
GetCopyOf |
Copies all properties of a component from source to target. Uses reflection to set properties.
(Defined by ComponentExtensions.) | |
WaitForT |
Waits for a singleton on a coroutine
(Defined by SingletonManager.) |