C# Класс UISprite, DsynBio

Наследование: UIWidget
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
mInner Rect
mInnerUV Rect
mOuter Rect
mOuterUV Rect
mScale Vector3
mSprite UIAtlas.Sprite

Открытые методы

Метод Описание
GetAtlasSprite ( ) : UIAtlas.Sprite,

Retrieve the atlas sprite referenced by the spriteName field.

MakePixelPerfect ( ) : void

Adjust the scale of the widget to make it pixel-perfect.

OnFill ( BetterList verts, BetterList uvs, BetterList cols ) : void

Virtual function called by the UIScreen that fills the buffers.

OnUpdate ( ) : bool

Update the UV coordinates.

UpdateUVs ( bool force ) : void

Update the texture UVs used by the widget.

Защищенные методы

Метод Описание
FilledFill ( BetterList verts, BetterList uvs, BetterList cols ) : void

Filled sprite fill function.

OnStart ( ) : void

Set the atlas and the sprite.

Rotate ( Vector2 v, int offset ) : void

Helper function that copies the contents of the array, rotated by the specified offset.

SetAtlasSprite ( UIAtlas sp ) : void

Set the atlas sprite directly.

SimpleFill ( BetterList verts, BetterList uvs, BetterList cols ) : void

Regular sprite fill function is quite simple.

SlicedFill ( BetterList verts, BetterList uvs, BetterList cols ) : void

Sliced sprite fill function is more complicated as it generates 9 quads instead of 1.

TiledFill ( BetterList verts, BetterList uvs, BetterList cols ) : void

Tiled sprite fill function.

Приватные методы

Метод Описание
AdjustRadial ( Vector2 xy, Vector2 uv, float fill, bool invert ) : bool

Adjust the specified quad, making it be radially filled instead.

Описание методов

FilledFill() защищенный Метод

Filled sprite fill function.
protected FilledFill ( BetterList verts, BetterList uvs, BetterList cols ) : void
verts BetterList
uvs BetterList
cols BetterList
Результат void

GetAtlasSprite() публичный Метод

Retrieve the atlas sprite referenced by the spriteName field.
public GetAtlasSprite ( ) : UIAtlas.Sprite,
Результат UIAtlas.Sprite,

MakePixelPerfect() публичный Метод

Adjust the scale of the widget to make it pixel-perfect.
public MakePixelPerfect ( ) : void
Результат void

OnFill() публичный Метод

Virtual function called by the UIScreen that fills the buffers.
public OnFill ( BetterList verts, BetterList uvs, BetterList cols ) : void
verts BetterList
uvs BetterList
cols BetterList
Результат void

OnStart() защищенный Метод

Set the atlas and the sprite.
protected OnStart ( ) : void
Результат void

OnUpdate() публичный Метод

Update the UV coordinates.
public OnUpdate ( ) : bool
Результат bool

Rotate() защищенный Метод

Helper function that copies the contents of the array, rotated by the specified offset.
protected Rotate ( Vector2 v, int offset ) : void
v Vector2
offset int
Результат void

SetAtlasSprite() защищенный Метод

Set the atlas sprite directly.
protected SetAtlasSprite ( UIAtlas sp ) : void
sp UIAtlas
Результат void

SimpleFill() защищенный Метод

Regular sprite fill function is quite simple.
protected SimpleFill ( BetterList verts, BetterList uvs, BetterList cols ) : void
verts BetterList
uvs BetterList
cols BetterList
Результат void

SlicedFill() защищенный Метод

Sliced sprite fill function is more complicated as it generates 9 quads instead of 1.
protected SlicedFill ( BetterList verts, BetterList uvs, BetterList cols ) : void
verts BetterList
uvs BetterList
cols BetterList
Результат void

TiledFill() защищенный Метод

Tiled sprite fill function.
protected TiledFill ( BetterList verts, BetterList uvs, BetterList cols ) : void
verts BetterList
uvs BetterList
cols BetterList
Результат void

UpdateUVs() публичный Метод

Update the texture UVs used by the widget.
public UpdateUVs ( bool force ) : void
force bool
Результат void

Описание свойств

mInner защищенное свойство

protected Rect mInner
Результат Rect

mInnerUV защищенное свойство

protected Rect mInnerUV
Результат Rect

mOuter защищенное свойство

protected Rect mOuter
Результат Rect

mOuterUV защищенное свойство

protected Rect mOuterUV
Результат Rect

mScale защищенное свойство

protected Vector3 mScale
Результат Vector3

mSprite защищенное свойство

protected UIAtlas.Sprite mSprite
Результат UIAtlas.Sprite