Entity¶
Reference¶
- class Entity¶
- module:
- static getByNodeId(nodeId)¶
Get an entity by the node Id it is attached to
- Parameters:
nodeId (
str
) – id of the node- Returns:
found entity or nil
- Return type:
- static getByNodeIdAndScriptName(nodeId, scriptName)¶
Get an entity by the node Id it is attached to and its script name
- Parameters:
nodeId (
str
) – id of the nodescriptName (
str
) – name of the script item
- Returns:
found entity or nil
- Return type:
- getNodeId()¶
Return the node id of the scene graph node this is attached to
- Returns:
the node id
- Return type:
str
- getScriptName()¶
- getProperties()¶