Beta
The same entity as in Lens Scripting.
"Lens Scripting".Built-In.ScriptComponent.
const scriptComponent = sceneObject.addComponent('ScriptComponent')scriptComponent.scriptAsset = scriptAsset Copy
const scriptComponent = sceneObject.addComponent('ScriptComponent')scriptComponent.scriptAsset = scriptAsset
Readonly
The unique id of the entity.
Script asset associated with the script component.
The entity's type.
A list of entities which this entity has a reference to.
A list of entities which has a reference to this entity.
Swap this entity for another one based on a JSON of the current entity id and the target entity id.
The same entity as in Lens Scripting.
See
"Lens Scripting".Built-In.ScriptComponent.
Example