WorldSpaceButton Class |
Namespace: ImmerseSDK.UI
[UnityEngine.RequireComponent(typeof(BoxCollider))] [UnityEngine.RequireComponent(typeof(Button))] public class WorldSpaceButton : LoggingBehaviour, IInteractableObject, IAutoPointingObject
The WorldSpaceButton type exposes the following members.
Name | Description | |
---|---|---|
WorldSpaceButton | Initializes a new instance of the WorldSpaceButton class |
Name | Description | |
---|---|---|
ShouldAutoPoint |
True if this object requires automatic controller pointing.
| |
Transform |
This object's transform component
|
Name | Description | |
---|---|---|
ClickAfterDelay |
Stops a user pressing the button too much times in a row
| |
OnTriggerEnter | ||
OnTriggerExit | ||
RequirementsMet |
Returns true if interaction is allowed, and interaction requirements are met.
| |
ShowHighlight |
Shows/Hides a highlight around the object
| |
Start | ||
TriggerScreenControlInteract |
Name | Description | |
---|---|---|
_clickRoutine |
Stored Coroutine for holding a button press event with a delay that allows us to stop it later
| |
_currentInput |
The InputModule of the hand that interacted with the button
| |
_minimumDelayBetweenPresses | ||
_shouldAutoPoint |
If the hand should automatically point when the user is near
| |
_triggerClick | ||
_triggerPointerDown | ||
_triggerPointerUp |
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.) |