Skip to main content

Class: TMeshComponent

Defined in: components/mesh-component.ts:23

A component is a data structure that describes a property of an entity.

Extends​

Constructors​

Constructor​

new TMeshComponent(data): TMeshComponent

Defined in: components/mesh-component.ts:26

Parameters​

data​

TInlineMeshData | TAssetMeshData

Returns​

TMeshComponent

Overrides​

TComponent.constructor

Properties​

data​

data: TInlineMeshData | TAssetMeshData

Defined in: components/mesh-component.ts:26


uuid?​

optional uuid?: string

Defined in: components/mesh-component.ts:24


requiredComponents?​

readonly static optional requiredComponents?: TComponentConstructor<TComponent>[]

Defined in: core/component.ts:9

The components that are required by this component. If the entity doesn't have any of the components, they will be created with default values.

Inherited from​

TComponent.requiredComponents