Component3ddata

Component3DData interface

Base class for all components data interfaces. It contains the common properties for all components

Signature:

export interface Component3DData 

Properties

Property

Modifiers

Type

Description

_batchId?

string

(Optional)

children?

Record<string, Component3DData>

(Optional) List of children components

collider?

PhysicsData

(Optional) Physics paramaters for the component (rigidbody type, collider type, etc)

id?

string

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

name?

string

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

parentId?

string

(Optional) id of the parent component

script?

ScriptData

(Optional) Attach an identifier or a tag to a component, so that can be easily accessed in the ComponentManager

type

unknown

Type of the component (model, video, platform, kitbash, etc)