Entity
Thuộc tính
Entity là lớp cơ sở trừu tượng cho tất cả các đối tượng có thể được gắn vào một Node.Các lớp con cụ thể bao gồm Mesh, Camera, Box, Sphere, và Cylinder. Một thực thể cung cấp tên và định danh nhưng không có hình học riêng.
public abstract class Entity : SceneObjectThuộc tính
A3DObject → SceneObject → Entity
Thuộc tính
| Name | Type | Access | Description |
|---|---|---|---|
Excluded | bool | Read/Write | Gets or sets the excluded. |
ParentNodes | List<Node> | Read | Gets the parent nodes. |
ParentNode | Node | Read/Write | Gets or sets the parent node. |
Scene | Scene | Read | Gets the scene. |
Name | string | Read/Write | Gets or sets the name. |
Properties | PropertyCollection | Read | Gets the properties. |
| Signature | Description |
|---|---|
Entity(name: string) | |
GetBoundingBox() | Gets the bounding box of current entity in its object space coordinate system. |
GetEntityRendererKey() | Gets the key of the entity renderer registered in the renderer |
SceneObject(name: string) | |
A3DObject() | |
RemoveProperty(property: Property) | Removes a dynamic property. |
GetProperty(property: string) | Get the value of specified property |
SetProperty(property: string, value: object?) | Sets the value of specified property |
FindProperty(propertyName: string) | Finds the property. It can be a dynamic property (Created by CreateDynamicProperty/SetProperty) or native property(Identified by its name) |