Protected_Protected_Protected_Protected_Protected_Protected_Protected_Protected_Protected_Protected_Protected_Protected_ProtectedinitializedProtectedmanagedProtectedneedsReadonlyonReadonlyonReadonlyonReadonlyonProtectedprevProtectedvisualGets the duration of the animation.
The duration of the animation in milliseconds.
Sets the duration of the animation.
The duration of the animation in milliseconds.
Gets the toggled default color for the visual element.
A vec4 representing the current toggled default color.
Sets the toggled default color for the visual element.
A vec4 representing the RGBA color to be used as the toggled default color.
Gets the toggled hovered color for the visual element.
A vec4 representing the current toggled hovered color.
Sets the toggled hovered color for the visual element.
A vec4 representing the RGBA color to be used as the toggled hovered color.
Gets the toggled triggered color for the visual element.
A vec4 representing the current toggled triggered color.
Sets the toggled triggered color for the visual element.
A vec4 representing the RGBA color to be used as the toggled triggered color.
Gets the size of the border for the capsule visual.
The border size as a number. Currently, this always returns 0.
Gets whether the default state should apply position changes.
true if the default state should apply position changes; otherwise, false.
Sets whether the default state should apply position changes and initializes the visual states.
A boolean indicating whether the default state should apply position changes.
Gets whether the default state should apply scale changes.
true if the default state should apply scale changes; otherwise, false.
Sets whether the default state should apply scale changes and initializes the visual states.
A boolean indicating whether the default state should apply scale changes.
Gets the position of the visual element when it is in an error state.
A vec3 representing the current error position.
Sets the position of the visual element when it is in an error state.
A vec3 object representing the new position for the error state.
Gets the scale applied when the visual is in an error state.
A vec3 representing the current error scale.
Sets the scale for the error visualization and initializes its visual states.
A vec3 object representing the scale to be applied to the error visualization.
Indicates whether the capsule visual has a border.
The border property always returns false for the CapsuleVisual class,
Gets whether the hover state should apply position changes.
true if the hovered state should apply position changes; otherwise, false.
Sets whether the hovered state should apply position changes and initializes the visual states.
A boolean indicating whether the hovered state should apply position changes.
Gets whether the hovered state should apply scale changes.
true if the hovered state should apply scale changes; otherwise, false.
Sets whether the hovered state should apply scale changes and initializes the visual states.
A boolean indicating whether the hovered state should apply scale changes.
Gets the position of the visual element when it is in a inactive state.
A vec3 representing the current inactive position.
Sets the position of the visual element when it is in a inactive state.
A vec3 object representing the new position for the inactive state.
Gets the scale applied when the visual is in a inactive state.
A vec3 representing the current inactive scale.
Sets the scale to be applied when the visual is in a inactive state and initializes its visual states.
A vec3 object representing the scale to apply in the inactive state.
Gets whether the inactive state should apply position changes.
true if the inactive state should apply position changes; otherwise, false.
Sets whether the inactive state should apply position changes and initializes the visual states.
A boolean indicating whether the inactive state should apply position changes.
Gets whether the inactive state should apply scale changes.
true if the inactive state should apply scale changes; otherwise, false.
Sets whether the inactive state should apply scale changes and initializes the visual states.
A boolean indicating whether the inactive state should apply scale changes.
Gets the RenderMeshVisual associated with the capsule.
The visual representation of the capsule's mesh.
Gets the associated SceneObject instance.
The SceneObject associated with this visual.
Determines whether the color should change when transition to a new state.
A boolean value indicating if the color change is enabled.
Sets whether to enable the color changing behavior for the visual.
A boolean indicating whether the color change is enabled (true) or disabled (false).
Determines whether the visual element should scale when transitioning to a new state
true if the visual element should scale, otherwise false.
Indicates whether the visual element should be translated when transitioning to a new state.
true if the visual element should be translated; otherwise, false.
Gets whether the toggled default state should apply position changes.
true if the toggled default state should apply position changes; otherwise, false.
Sets whether the toggled default state should apply position changes and initializes the visual states.
A boolean indicating whether the toggled default state should apply position changes.
Gets whether the toggled default state should apply scale changes.
true if the toggled default state should apply scale changes; otherwise, false.
Sets whether the toggled default state should apply scale changes and initializes the visual states.
A boolean indicating whether the toggled default state should apply scale changes.
Gets the toggled hovered scale of the visual element.
A vec3 representing the current toggled hovered scale.
Sets the scale to be applied when the visual is toggled and hovered.
A vec3 representing the new scale to apply when toggled and hovered.
Gets whether the toggled hovered state should apply position changes.
true if the toggled hovered state should apply position changes; otherwise, false.
Sets whether the toggled hovered state should apply position changes and initializes the visual states.
A boolean indicating whether the toggled hovered state should apply position changes.
Gets whether the toggled hovered state should apply scale changes.
true if the toggled hovered state should apply scale changes; otherwise, false.
Sets whether the toggled hovered state should apply scale changes and initializes the visual states.
A boolean indicating whether the toggled hovered state should apply scale changes.
Gets whether the toggled triggered state should apply position changes.
true if the toggled triggered state should apply position changes; otherwise, false.
Sets whether the toggled triggered state should apply position changes and initializes the visual states.
A boolean indicating whether the toggled triggered state should apply position changes.
Gets whether the toggled triggered state should apply scale changes.
true if the toggled triggered state should apply scale changes; otherwise, false.
Sets whether the toggled triggered state should apply scale changes and initializes the visual states.
A boolean indicating whether the toggled triggered state should apply scale changes.
Gets the transform associated with this visual.
The current transform of the visual.
Gets whether the triggered state should apply position changes.
true if the triggered state should apply position changes; otherwise, false.
Sets whether the triggered state should apply position changes and initializes the visual states.
A boolean indicating whether the triggered state should apply position changes.
Gets whether the triggered state should apply scale changes.
true if the triggered state should apply scale changes; otherwise, false.
Sets whether the triggered state should apply scale changes and initializes the visual states.
A boolean indicating whether the triggered state should apply scale changes.
ProtectedvisualProtectedapplyProtectedapplyDestroys the current instance.
Initializes the visual component by setting up its initial scale and position, and preparing its visual states. This method is typically called during the setup phase to ensure the visual component is ready for use.
Updates the visual state of the object based on the provided state type.
The type of state to set, which determines the visual properties such as color, scale, and position.
ProtectedupdateProtectedupdate
The
CapsuleVisualclass represents a visual component in the form of a capsule. It extends theVisualclass and provides functionality for managing the capsule's appearance, size, and state transitions.