Protected_Protected_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_Protected_Protected_ProtectedaddReadonlyapiGeneric 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.
ProtectedmanagedProtectedmanagedReadonlyonEvent that is triggered when the toggle finishes its action. The event data represents whether it's an explicit change.
ProtectedonReadonlyonAn 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.
ReadonlyonEvent that is triggered when the toggle value changes.
ProtectedonReadonlysceneThe SceneObject this component is on.
ProtectedstateReadonlyuniqueProtectedvisualGets 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.
ProtecteddeltaProtecteddeltaGets whether the visual element has a shadow.
Whether the visual element has a shadow.
Sets whether the visual element has a shadow. If the hasShadow is set to true, the shadowVisual object will be created and configured.
Whether the visual element has a shadow.
is 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.
Gets the current state of the toggle.
true if the toggle is on, otherwise false.Sets the state of the toggle. If the new state is different from the current state, it updates the state, triggers the updateCheck method, and invokes the onValueChangeEvent.
A boolean indicating the new state of the toggle.
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 render order of the visual element.
The render order of the visual element.
Sets the render order of the visual element.
The render order of the visual element.
Sets the position offset of the shadow.
The position offset of the shadow.
Gets the associated DropShadowVisual instance for this component.
The DropShadowVisual instance linked to this component, if any.
Sets the size of the visual element.
A vec3 representing the dimensions of the visual element.
Gets the style of the visual element.
The style of the visual element.
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.
Gets the type string of the visual element.
The type string of the visual element.
ProtectedconfigureProtectedconfigureProtectedcreateAdds a new SceneEvent, triggered by eventType events, to the ScriptComponent.
ProtectedcreateDestroys the component.
ProtecteddisableProtecteddisableProtectedenableProtectedenableProtectedgetReturns 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 visual element and its associated properties and events.
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.
Registers a tooltip instance with the current component
The Tooltip instance to associate with this component.
ProtectedreleaseRemoves a previously added SceneEvent from the ScriptComponent.
ProtectedremoveConverts the component to a toggleable state.
ProtectedsetProtectedsetSets the tooltip text for the visual element.
The text to be displayed in the tooltip.
ProtectedsetProtectedsetToggle on/off the toggle by setting its state
A boolean value indicating the desired toggle state.
Protectedupdate
Represents a CapsuleButton component that extends the base Toggle class. This component initializes a CapsuleVisual instance and assigns it as the visual representation.