Visual
Lens Studio v1.0.0+
Scripting Name: Component.Visual
Inherits from Component
Child Classes: BaseMeshVisual
, ClearDepth
Description
Base class for all visual Components (e.g. MeshVisual).
Methods
getRenderOrder()
: Number
Returns the order of this Visual in the render queue.
setRenderOrder(Number value)
: void
Sets the order of this Visual in the render queue.
Inherited Methods
destroy()
: void
Destroys the component.
getSceneObject()
: SceneObject
Returns the SceneObject the component is attached to.
getTransform()
: Transform
Returns the Transform this component is attached to.
isSame(SerializableWithUID other)
: Boolean
Returns true if this object is the same as other
. Useful for checking if two references point to the same thing.
getTypeName()
: String
Returns the name of this object’s type.
isOfType(String type)
: Boolean
Returns true if the object matches or derives from the passed in type.
Inherited Properties
enabled
: Boolean
If disabled, the Component will stop enacting its behavior.
Still Looking for help?
Visit Support