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?
origin?
width
number
Returns
TSpriteComponent
Overrides
Properties
colorFilter?
optionalcolorFilter?: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?
optionalinstanceUVScales?: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?
optionaluuid?:string
Defined in: components/sprite-component.ts:49
width
width:
number
Defined in: components/sprite-component.ts:40
requiredComponents?
readonlystaticoptionalrequiredComponents?: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.