Skip to content

Class: GUISprite

Sprites are simple 2D objects with graphical images

Constructors

Properties

Constructors

constructor

new GUISprite(texture?): GUISprite

Parameters

NameType
texture?GUITexture

Returns

GUISprite

Defined in

src/components/gui/core/GUISprite.ts:30

Properties

id

id: string

Defined in

src/components/gui/core/GUISprite.ts:11


guiTexture

guiTexture: GUITexture

Defined in

src/components/gui/core/GUISprite.ts:12


uvRec

uvRec: Vector4

Defined in

src/components/gui/core/GUISprite.ts:15


uvBorder

uvBorder: Vector4

Defined in

src/components/gui/core/GUISprite.ts:16


offsetSize

offsetSize: Vector4

Defined in

src/components/gui/core/GUISprite.ts:18


borderSize

borderSize: Vector4

Defined in

src/components/gui/core/GUISprite.ts:19


trimSize

trimSize: Vector2

Defined in

src/components/gui/core/GUISprite.ts:21


isSliced

isSliced: boolean = false

Defined in

src/components/gui/core/GUISprite.ts:22


height

height: number = 4

Defined in

src/components/gui/core/GUISprite.ts:23


width

width: number = 4

Defined in

src/components/gui/core/GUISprite.ts:24


xadvance

xadvance: number = 0

Defined in

src/components/gui/core/GUISprite.ts:26


xoffset

xoffset: number = 0

Defined in

src/components/gui/core/GUISprite.ts:27


yoffset

yoffset: number = 0

Defined in

src/components/gui/core/GUISprite.ts:28