Options
All
  • Public
  • Public/Protected
  • All
Menu

A component for basic 2D shape rendering. Specifies an Shape2D 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).

shape

shape: Entity

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

Static _isSharedComp

_isSharedComp: boolean

Static _size

_size: number

Static _view

_view: any

Static cid

cid: number

Static color

Static shape

shape: EntityComponentFieldDesc

Methods

Static _dtorFn

  • Parameters

    Returns void

Static _fromPtr

Static _tempHeapPtr

  • Parameters

    Returns number

Static _toPtr

  • Parameters

    Returns void

Generated using TypeDoc