Asset_instance_node
Ploy3D / Asset_instance_node
Interface: Asset_instance_node
场景节点实例。
Table of contents
Properties
Properties
node
• node: string
用于实例化的节点资源URI(注意,其子级也会自动实例化)。
parent
• Optional
parent: Object
父级节点实例(父级应先于子级实例化)。
Type declaration
Name | Type | Description |
---|---|---|
parent | string | 父级节点资源GUID。 |
world_pos_stays | boolean | 绑定父级时是否维持世界坐标不变。 |
transform
• Optional
transform: Object
实例变换组件数据。
Type declaration
Name | Type | Description |
---|---|---|
localMatrix? | number [] | 本地矩阵(优先采用)。 |
localPosition | number [] | 本地坐标。 |
localRotation | number [] | 本地旋转。 |
localScale | number [] | 本地缩放。 |