C# 클래스 UISprite, DsynBio

상속: UIWidget
파일 보기 프로젝트 열기: CyberCRI/DsynBio 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
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