InteractableObject Class |
Namespace: ImmerseSDK.Interaction
[UnityEngine.DisallowMultipleComponent] public abstract class InteractableObject : NetworkedPointHandlingObject, IInteractableObject, IAutoPointingObject
The InteractableObject type exposes the following members.
Name | Description | |
---|---|---|
InteractableObject | Initializes a new instance of the InteractableObject class |
Name | Description | |
---|---|---|
AllowInteractionOnlyByLocalAvatar |
By default, only colliders belonging to the Local Avatar's hand are allowed to press buttons.
If this property is set to false, any collision detected will cause the button to be pressed.
| |
Collider |
The collider belonging to this object that is used to detect interaction
| |
ShouldAutoPoint |
True if this object requires automatic controller pointing.
|
Name | Description | |
---|---|---|
AllowInteraction |
Returns True if the button is allowed to be pressed
| |
Awake | ||
FixedUpdate |
Unity Component Method
| |
RequirementsMet |
Returns true if interaction is allowed, and interaction requirements are met.
| |
SetUpOutline | ||
ShowHighlight |
Shows/Hides a highlight around the object
| |
TriggerScreenControlInteract | ||
Vibrate |
Make the controller belonging to the specified hand vibrate
|
Name | Description | |
---|---|---|
_allowInteractionOnlyByLocalAvatar |
By default, only colliders belonging to the Local Avatar's hand are allowed to press buttons.
If this property is set to false, any collision detected will cause the button to be pressed.
| |
_interactionRequirements |
Requirements that has to be satisfied to allow interaction
| |
_isInteractableOnlyWhenParentEngaged |
Note: If this object does not have an engageable object as a parent, this setting has no effect.
If it does have an engageable object as a parent, this setting will control whether the parent needs to be
engaged to allow this object to be interactable.
| |
_shouldAutoPoint |
If the hand should automatically point when the user is near
|
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.) |