Click or drag to resize

WorldSpaceButton Class

Enables a world space Button to be touched with a vr hand
Inheritance Hierarchy
SystemObject
  UnityEngine.Object
    UnityEngine.Component
      UnityEngine.Behaviour
        UnityEngine.MonoBehaviour
          ImmerseSDKLoggingBehaviour
            ImmerseSDK.UIWorldSpaceButton

Namespace:  ImmerseSDK.UI
Assembly:  ImmerseSDK.App (in ImmerseSDK.App.dll) Version: 3.9.0.0 (3.9.0.0)
Syntax
C#
[UnityEngine.RequireComponent(typeof(BoxCollider))]
[UnityEngine.RequireComponent(typeof(Button))]
public class WorldSpaceButton : LoggingBehaviour, 
	IInteractableObject, IAutoPointingObject

The WorldSpaceButton type exposes the following members.

Constructors
  NameDescription
Public methodWorldSpaceButton
Initializes a new instance of the WorldSpaceButton class
Top
Properties
  NameDescription
Public propertyShouldAutoPoint
True if this object requires automatic controller pointing.
Public propertyTransform
This object's transform component
Top
Methods
  NameDescription
Protected methodClickAfterDelay
Stops a user pressing the button too much times in a row
Protected methodOnTriggerEnter
Protected methodOnTriggerExit
Public methodRequirementsMet
Returns true if interaction is allowed, and interaction requirements are met.
Public methodShowHighlight
Shows/Hides a highlight around the object
Protected methodStart
Public methodTriggerScreenControlInteract
Top
Fields
  NameDescription
Protected field_clickRoutine
Stored Coroutine for holding a button press event with a delay that allows us to stop it later
Protected field_currentInput
The InputModule of the hand that interacted with the button
Protected field_minimumDelayBetweenPresses
Private field_shouldAutoPoint
If the hand should automatically point when the user is near
Protected field_triggerClick
Protected field_triggerPointerDown
Protected field_triggerPointerUp
Top
Extension Methods
  NameDescription
Public Extension MethodGetCopyOf
Copies all properties of a component from source to target. Uses reflection to set properties.
(Defined by ComponentExtensions.)
Public Extension MethodWaitForT
Waits for a singleton on a coroutine
(Defined by SingletonManager.)
Top
See Also