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.
ReadonlyuniqueSets the background color of the sphere.
A vec4 representing the RGBA color to set as the background color.
Gets the icon texture of the sphere.
The icon texture of the sphere, or undefined if there is none.
Gets the radius of the sphere.
The radius of the sphere in local space units.
Sets the radius of the sphere by updating its transform's local scale.
A number object representing the new radius of the sphere
Gets the RenderMeshVisual instance associated with this sphere.
The RenderMeshVisual instance.
The render order of the Sphere.
The render order of the Sphere.
Gets the scale factor for the back of the sphere along the Z-axis.
The scale factor for the back of the sphere.
Sets the scale factor for the back of the sphere along the Z-axis.
A number representing the scale factor for the back of the sphere. A value closer to 0.0 makes the back of the sphere flatter, while a value closer to 1.0 retains its original shape.
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.
Initializes the sphere component. This method sets up the mesh, material, size, and background color for the sphere. It ensures that the initialization process is only performed once.
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
Sphereclass represents a 3D sphere component in the scene. It extends theBaseScriptComponentand provides functionality for rendering and customizing the sphere's appearance.Decorator
@component