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.
Readonlyuniqueboolean whether or not the border is enabled.
boolean to show or hide the border.
type of gradient for the border gradient: Linear or Radial.
set type of gradient for the border gradient: Linear or Gradient.
current border thickness in centimeters in local space.
set border thickness in centimeters in local space.
which type of border: either Color or Gradient.
set border type: either Color or Gradient.
current corner radius in centimeters in local space.
set corner radius in centimeters in local space.
boolean of whether or not the background uses a gradient.
boolean to enable or disable background gradient.
type of the background gradient: Linear, or Radial.
set type of the background gradient: Linear or Radial.
Get Material asset that is cloned on initialize
The render mesh visual of the rounded rectangle.
The render order of the Rounded Rectangle.
The render order of the Rounded Rectangle.
current texture mode of background texture: Stretch, Fill Height or Fill Width.
set texture mode of background texture: Stretch: Fill Height or Fill Width.
current texture wrap method: None, Repeat or Clamp.
sets current texture wrap method: None, Repeat or Clamp.
The transform of the rounded rectangle.
boolean of whether this uses a background texture.
boolean of whether to use a background texture.
Adds a new SceneEvent, triggered by eventType events, to the ScriptComponent.
Destroys the component.
get a stop from the background gradient at index
GradientStop
get a stop from the border gradient at index
GradientStop
Returns the SceneObject the component is attached to.
Returns the Transform this component is attached to.
StaticgetReturns the name of this object's type.
initialize function run once if creating dynamically: set parameters, then run this function to create and initialize in one frame
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.
Prints the current configuration of the RoundedRectangle to the console in a readable format. Useful for debugging and understanding the current state.
Removes a previously added SceneEvent from the ScriptComponent.
set background gradient using a GradientParameters input
set a stop in the background gradient at given index, with parameters defined by GradientStop
set background gradient using a GradientParameters input
set a stop in the border gradient at given index, with parameters defined by GradientStop
Rounded Rectangle Component Gives a Rounded Rectangle at a given size Provides Background Color, Gradient or Texture And an Optional Inset Border, with Color or Gradient