Skip to content
On this page

Interface: NodeProps ​

WebSG.NodeProps

Interface representing the properties you can create a Node object with.

Table of contents ​

Properties ​

Properties ​

mesh ​

• Optional mesh: Mesh

The initial mesh associated with the node.

Defined in ​

websg.d.ts:643


name ​

• Optional name: string

The initial name of the node.

Defined in ​

websg.d.ts:638


rotation ​

• Optional rotation: Quaternion

The initial rotation of the node.

Defined in ​

websg.d.ts:658


scale ​

• Optional scale: Vector3

The initial scale of the node.

Defined in ​

websg.d.ts:663


translation ​

• Optional translation: Vector3

The initial translation of the node.

Defined in ​

websg.d.ts:653


uiCanvas ​

• Optional uiCanvas: UICanvas

The initial UI canvas associated with the node.

Defined in ​

websg.d.ts:648