跳到主要内容

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

NameTypeDescription
parentstring父级节点资源GUID。
world_pos_staysboolean绑定父级时是否维持世界坐标不变。

transform

Optional transform: Object

实例变换组件数据。

Type declaration

NameTypeDescription
localMatrix?number[]本地矩阵(优先采用)。
localPositionnumber[]本地坐标。
localRotationnumber[]本地旋转。
localScalenumber[]本地缩放。