Skip to main content

Class: TSpriteComponent

Defined in: components/sprite-component.ts:39

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

Extends​

Constructors​

Constructor​

new TSpriteComponent(options): TSpriteComponent

Defined in: components/sprite-component.ts:51

Parameters​

options​
colorFilter?​

vec4

height​

number

instanceUVScales?​

vec2

layer?​

TSpriteLayer

origin?​

TOriginPoint

width​

number

Returns​

TSpriteComponent

Overrides​

TComponent.constructor

Properties​

colorFilter?​

optional colorFilter?: vec4

Defined in: components/sprite-component.ts:44


geometry​

geometry: TTexturedMeshGeometry

Defined in: components/sprite-component.ts:47


height​

height: number

Defined in: components/sprite-component.ts:41


instanceUVScales?​

optional instanceUVScales?: vec2

Defined in: components/sprite-component.ts:45


layer​

layer: TSpriteLayer

Defined in: components/sprite-component.ts:43


origin​

origin: TOriginPoint

Defined in: components/sprite-component.ts:42


uuid?​

optional uuid?: string

Defined in: components/sprite-component.ts:49


width​

width: number

Defined in: components/sprite-component.ts:40


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