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.
custom font size if not set, it will automatically scale from size.y
ReadonlyisReturns true if this Component, its SceneObject, and all of that SceneObjects parents are enabled.
ProtectedmanagedProtectedmanagedReadonlyoncalled when this component enters edit mode
ReadonlyonAn 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.
Readonlyoncalled when the keyboard state changes uses a boolean isOpen to indicate if the keyboard is open or closed
Readonlyoncalled when the return key is pressed on the keyboard uses the current value of the keyboard as its parameter
ReadonlyonAn event that is triggered whenever the state of the element changes.
ProtectedonReadonlyoncalled when the underlying text value of this component changes uses the current value of the keyboard as its parameter
ReadonlyonAn 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.
Readonlyoncalled when the keyboard calls onTextChanged ie: anytime there is typing on the keyboard
do scale animation on hover
ReadonlysceneThe 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.
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 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.
Full string in the input
set current text displayed in
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.
ProtecteddisableProtecteddisablestart or stop editing
ProtectedenableProtectedenableSceneObject of "left" icon
ProtectedgetSceneObject of right icon
Returns the SceneObject the component is attached to.
vec3 of current size
Returns the Transform this component is attached to.
StaticgetReturns the name of this object's type.
function to setup text field call manually if creating dynamically and seeing a frame without the parameters you assign
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.
Protectedremoveset side of icon and password ui
set type of TextInputField "default", "password", "numeric " or "format"
vec3 set rendering size
vec3 overwrite cached starting size
Sets the tooltip text for the visual element.
The text to be displayed in the tooltip.
ProtectedsetProtectedsetturn on whether or not to use the icon note: still requires an icon set to .icon!
set current visible text bypasses setting underlying value of this TextInputField
ProtectedupdateProtectedupdate
TextInputField Component to add a TextField to a Spectacles Lens Uses text input system under the hood Automatically writes text into a mesh that is adjustable by scale and size