Componentpublic class NodeComponent extends Object implements Component
Component.
Concepts such as child and parent nodes are used to describe the hierarchy of objects in a scene.
| 构造器 | 说明 |
|---|---|
NodeComponent() |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
String |
getName() |
Obtains the entity name.
|
Entity |
getParent() |
Obtains the parent entity.
|
boolean |
isEnabled() |
Checks whether this entity is enabled.
|
boolean |
isExported() |
Checks whether this node will be exported.
|
void |
setEnabled(boolean isEnabled) |
Sets whether to enable this entity.
|
void |
setExported(boolean isExported) |
Sets whether to export this node.
|
void |
setName(String name) |
Sets the entity name.
|
void |
setParent(Entity parent) |
Sets the parent entity.
|
public String getName()
public void setName(String name)
name - Indicates the entity name to set.public Entity getParent()
public void setParent(Entity parent)
parent - Indicates the parent entity to set.public boolean isEnabled()
true if this entity is enabled; returns false otherwise.public void setEnabled(boolean isEnabled)
isEnabled - Specifies whether the entity will be enabled.public boolean isExported()
true if the node will be exported; returns false otherwise.public void setExported(boolean isExported)
isExported - Specifies whether the node will be exported.