Kitbashcomponentdata

KitbashComponentData interface

Data specification for KitBashComponent, see ComponentManager.create() on how to create a component

Signature:

export interface KitbashComponentData extends Component3DData 

Extends: Component3DData

Properties

Property

Modifiers

Type

Description

id?

string

(Optional) if not provided, an auto id will be generated

kitType

string

Type of the kit asset

name?

string

(Optional) name for the component. Defaults to ""

position?

XYZ

(Optional) Position of the component in the space. Defaults to {x: 0, y: 0, z: 0}

rotation?

XYZ

(Optional) Rotation of the component in the space. Defaults to {x: 0, y: 0, z: 0}

scale?

XYZ

(Optional) Scale of the component in the space. Defaults to {x: 1, y: 1, z: 1}

type

"kitbash"