Options
All
  • Public
  • Public/Protected
  • All
Menu

A component for basic 2D sprite rendering. Specifies an Sprite2D to draw and rendering modifiers, such as a color tint.

Hierarchy

Index

Constructors

constructor

Properties

blending

blending: BlendOp

Blend op for rendering the sprite. The default and regular mode is Alpha.

color

color: Color

A color tint to apply to the sprite image. For normal rendering, this should be opaque white (1, 1, 1, 1).

sprite

sprite: Entity

The Entity on which to look for a {@link UTiny.Sprite2D Sprite2D} component to describe the sprite to render. If null, the Sprite2D is looked for on the same entity as the Sprite2DRenderer.

Static _isSharedComp

_isSharedComp: boolean

Static _size

_size: number

Static _view

_view: any

Static cid

cid: number

Static color

Static sprite

sprite: EntityComponentFieldDesc

Methods

Static _dtorFn

Static _fromPtr

Static _tempHeapPtr

Static _toPtr

  • Parameters

    Returns void

Generated using TypeDoc