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.5.0.0 (3.5.0.0)
Syntax
C#
[UnityEngine.RequireComponent(typeof(BoxCollider))]
[UnityEngine.RequireComponent(typeof(Button))]
public class WorldSpaceButton : LoggingBehaviour, 
	IInteractableObject

The WorldSpaceButton type exposes the following members.

Constructors
  NameDescription
Public methodWorldSpaceButton
Initializes a new instance of the WorldSpaceButton class
Top
Properties
  NameDescription
Public propertyTransform
Top
Methods
  NameDescription
Protected methodClickAfterDelay
Stops a user pressing the button too much times in a row
Protected methodOnTriggerEnter
Protected methodOnTriggerExit
Public methodRequirementsMet
Public methodShowHighlight
Protected methodStart
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
Private fieldtriggerClick
Private fieldtriggerPointerDown
Private fieldtriggerPointerUp
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