public interface Scene
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
SceneNode |
cloneNode(SceneNode node,
boolean recursive) |
Creates a clone node that copies all components of the original node according to handle values.
|
Entity |
createEntity() |
Creates an empty entity.
|
SceneNode |
createNode() |
Creates a node in a scene.
|
void |
destroyEntity(Entity entity) |
Destroys an entity.
|
void |
destroyNode(SceneNode node) |
Destroys a node and all its child nodes.
|
Engine |
getEngine() |
Obtains the engine used by the current scene.
|
MorphingSystem |
getMorphingSystem() |
Obtains a
MorphingSystem instance. |
Optional<SceneNode> |
getNode(Entity entity) |
Obtains the scene node of an entity.
|
SceneNode |
getRootNode() |
Obtains the root node of a scene, which is a container for other nodes and does not point to any entity.
|
SceneUtil |
getSceneUtil() |
Obtains a
SceneUtil instance. |
Engine getEngine()
SceneUtil getSceneUtil()
SceneUtil instance.SceneUtil instance.Entity createEntity()
void destroyEntity(Entity entity)
entity - Indicates the entity to destroy.SceneNode getRootNode()
Optional<SceneNode> getNode(Entity entity)
entity - Indicates the scene node to request.NodeComponent object.SceneNode createNode()
Transform object, node,
and requisite matrix. By default, the created node is a child node of the root node.SceneNode cloneNode(SceneNode node, boolean recursive)
node - Indicates the original node to clone.recursive - Indicates whether the child nodes are recursively cloned. true indicates that all
child nodes are recursively cloned.void destroyNode(SceneNode node)
node - Indicates the node to destroy.MorphingSystem getMorphingSystem()
MorphingSystem instance.MorphingSystem instance.