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.
If disabled, the Component will stop enacting its behavior.
ReadonlyisReturns true if this Component, its SceneObject, and all of that SceneObjects parents are enabled.
ReadonlysceneThe SceneObject this component is on.
ReadonlyuniqueGets the interactable component of the back plate.
The interactable component associated with the back plate.
Sets the size of the back plate.
The new size of the back plate. The size is a vec2 representing the width and height of the back plate. The collider shape is also updated to match the new size.
Sets the style of the back plate.
Sets the style of the back plate. The style determines the background gradient and color of the back plate.
The new style of the back plate.
Adds a new SceneEvent, triggered by eventType events, to the ScriptComponent.
Destroys the component.
Returns the SceneObject the component is attached to.
Returns the Transform this component is attached to.
StaticgetReturns the name of this object's type.
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.
Removes a previously added SceneEvent from the ScriptComponent.
The BackPlate component creates a customizable back plate with a rounded rectangle shape. It supports different styles and sizes, and includes an interactable component for user interaction. BackPlate can be used as a background for other UI elements.