AbstractProtected_Protected_Protected_Protected_Protected_Protected_Protected_Protected_Indicates whether the element is currently being dragged. This property is used to track the drag state of the element.
Protected_Protected_ReadonlyapiGeneric object accessible by other instances of ScriptComponent. Use this object to store references to properties and methods that need to be accessible from other ScriptComponents.
ProtectedcolliderProtectedcolliderProtectedcolliderProtectedcurrentProtectedcurrentIf disabled, the Component will stop enacting its behavior.
ReadonlyisReturns true if this Component, its SceneObject, and all of that SceneObjects parents are enabled.
ProtectedmanagedProtectedmanagedReadonlyonAn event that is triggered when a hover interaction starts on the element.
ReadonlyonAn event that is triggered when a hover interaction ends on the element.
ReadonlyonA public API event that is triggered when the element is initialized.
ReadonlyonAn event that is triggered whenever the state of the element changes.
ProtectedonReadonlyonAn event that is triggered when a trigger interaction starts on the element.
ReadonlyonAn event that is triggered when a trigger interaction ends on the element.
ReadonlysceneThe SceneObject this component is on.
ProtectedstateReadonlyuniqueGets the ColliderComponent instance associated with this element. The collider is used for detecting interactions or collisions with the element.
The collider instance.
Gets the custom center position of the collider. This position is only used when colliderFitElement is false.
The custom collider center position in local space coordinates.
Sets the custom center position of the collider. This position is only applied when colliderFitElement is false.
The custom collider center position in local space coordinates.
Gets whether the collider automatically fits the element's size.
True if the collider fits the element, false if using custom size/position.
Sets whether the collider should automatically fit the element's size.
True to make the collider fit the element, false to use custom size/position.
Gets the custom size of the collider. This size is only used when colliderFitElement is false.
The custom collider size in local space coordinates.
Sets the custom size of the collider. This size is only applied when colliderFitElement is false.
The custom collider size in local space coordinates.
Gets the children of the element that are not managed by the element.
The children of the element that are not managed by the element.
Gets the number of children of the element that are not managed by the element.
The number of children of the element that are not managed by the element.
ProtecteddeltaProtecteddeltais inactive or not
set is inactive or is not inactive
Indicates whether the element has been initialized.
true if the element is initialized, otherwise false.
Gets the interactable property of the element.
The current interactable instance associated with this element.
Determines whether the element is draggable.
Always returns false, indicating that the element is not draggable.
ProtectedisGets the value indicating whether audio playback is enabled.
true if audio playback is enabled; otherwise, false.
Sets the playAudio behavior and initializes the audio component if necessary.
A boolean indicating whether audio should be played.
If set to true and the audio component is not already created,
a new audio component will be instantiated and attached to the scene object.
Gets the value indicating whether trigger down audio playback is enabled.
true if trigger down audio playback is enabled; otherwise, false.
Sets the playTriggerDownAudio behavior and initializes the audio component if necessary.
A boolean indicating whether trigger down audio should be played.
If set to true and the audio component is not already created,
a new audio component will be instantiated and attached to the scene object.
Gets the value indicating whether trigger up audio playback is enabled.
true if trigger up audio playback is enabled; otherwise, false.
Sets the playTriggerUpAudio behavior and initializes the audio component if necessary.
A boolean indicating whether trigger up audio should be played.
If set to true and the audio component is not already created,
a new audio component will be instantiated and attached to the scene object.
Gets the audio track to be played at the end of a trigger event.
The audio track asset associated with the trigger end event.
Sets the audio track to be played at the end of a trigger event.
The audio track asset to be assigned.
Gets the volume level for the trigger end audio.
The volume level for the trigger end audio.
Sets the volume level for the trigger end audio.
The desired volume level as a number.
Gets the audio track to be played when the trigger starts.
The audio track asset associated with the trigger start event.
Sets the audio track to be played when the trigger starts.
The audio track asset to be assigned.
Gets the volume level for the trigger start audio.
The volume level for the trigger start audio.
Sets the volume level for the trigger start audio.
The desired audio volume level as a number.
Adds a new SceneEvent, triggered by eventType events, to the ScriptComponent.
Destroys the component.
ProtecteddisableProtectedenableProtectedgetReturns the SceneObject the component is attached to.
Returns the Transform this component is attached to.
StaticgetReturns the name of this object's type.
Initializes the element and its associated components. This method ensures that the element is set up properly, including its collider, interactable state, size, and event listeners.
Returns true if the object matches or derives from the passed in type.
Returns true if this object is the same as other. Useful for checking if two references point to the same thing.
ProtectedonProtectedonProtectedonProtectedonProtectedonProtectedonProtectedonProtectedonProtectedonProtectedplayPlays the specified audio track at the given volume.
The audio track asset to be played.
The volume level at which the audio track should be played.
ProtectedreleaseRemoves a previously added SceneEvent from the ScriptComponent.
ProtectedremoveProtectedsetProtectedsetProtectedsetProtectedupdate
Abstract class representing an element in the Spectacles UIKit.
Abstract