Controller Methods |
The Controller type exposes the following members.
Name | Description | |
---|---|---|
Awake |
Unity component method
| |
ConvertToRightHand |
Converts the model from left to right hand
| |
ForceShowHands |
Provides the same functionality as Controller.ShowHands, but allows the isVisible parameter
to determine the hand's visibility if the hand is engaged at the time when the method is called.
| |
GetAvatar |
Returns the Avatar of this controller
| |
GetOrientation |
Get the target orientation of the controller
| |
GetOtherHand |
Gets the other hand
| |
IsLocal |
Returns true if this is a local controller
| |
IsOtherHandIsPointing |
Returns true if the other controller is in the pointing state, otherwise false
| |
IsPointing |
Returns true if the controller is in the pointing state, otherwise false
| |
OnDestroy |
Unity component method
| |
OnDisable |
Unity component method
| |
OnDrawGizmos |
Unity Editor-only method
| |
OnEnable |
Unity component method
| |
SetAvatar |
Assigns an avatar to this controller
| |
SetEngagingObject |
Sets the engaging object for this controller
| |
SetupRealControllerModels |
Initialises the hardware specific controller models
| |
ShowHandGeometry |
Shows or hides hand geometry only. Note that this does not update the internal visibility state,
so if anything happens that will cause an update, then that will determine the visibility.
| |
ShowHands |
Changes the visibility of the avatar hand model associated with this controller.
Note that when calling this method, the isVisible parameter will be stored locally
and is only used to determine the hand's visibility whenever it is not engaged with an object.
When the hand is engaged, it will always be hidden regardless of the value passed in.
| |
ShowRealControllerGeometry |
Shows or hides hand geometry only. Note that this does not update the internal visibility state,
so if anything happens that will cause an update, then that will determine the visibility.
| |
ShowRealControllers |
Changes the visibility of the real controller models.
| |
Start |
Unity component method
| |
Update |
Unity component method
| |
UpdateHandVisibility |
Updates visibility of the hand geometry
|
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.) |