C# Class FairyGUI.Image

Inheritance: DisplayObject
Datei anzeigen Open project: fairygui/FairyGUI-unity Class Usage Examples

Protected Properties

Property Type Description
_color Color
_fillAmount float
_fillClockwise bool
_fillMethod FillMethod
_fillOrigin int
_flip FlipType
_scale9Grid Rect?
_scaleByTile bool
_texture NTexture
_tileGridIndice int

Public Methods

Method Description
Image ( ) : System
Image ( NTexture texture ) : System

PrintTo ( Mesh mesh, Rect localRect ) : void

截取当前图片的一部分输出到另一个Mesh。不支持图片的填充模式、九宫格的平铺模式。

SetNativeSize ( ) : void

Update ( UpdateContext context ) : void

Protected Methods

Method Description
Create ( NTexture texture ) : void
GenerateGrids ( Rect gridRect, Rect uvRect ) : void
Rebuild ( ) : void
UpdateTexture ( NTexture value ) : void

Private Methods

Method Description
TileFill ( Rect destRect, Rect uvRect, float sourceW, float sourceH, int vertIndex ) : int

Method Details

Create() protected method

protected Create ( NTexture texture ) : void
texture NTexture
return void

GenerateGrids() protected method

protected GenerateGrids ( Rect gridRect, Rect uvRect ) : void
gridRect UnityEngine.Rect
uvRect UnityEngine.Rect
return void

Image() public method

public Image ( ) : System
return System

Image() public method

public Image ( NTexture texture ) : System
texture NTexture
return System

PrintTo() public method

截取当前图片的一部分输出到另一个Mesh。不支持图片的填充模式、九宫格的平铺模式。
public PrintTo ( Mesh mesh, Rect localRect ) : void
mesh UnityEngine.Mesh 目标Mesh
localRect UnityEngine.Rect 制定图片的区域
return void

Rebuild() protected method

protected Rebuild ( ) : void
return void

SetNativeSize() public method

public SetNativeSize ( ) : void
return void

Update() public method

public Update ( UpdateContext context ) : void
context UpdateContext
return void

UpdateTexture() protected method

protected UpdateTexture ( NTexture value ) : void
value NTexture
return void

Property Details

_color protected_oe property

protected Color _color
return Color

_fillAmount protected_oe property

protected float _fillAmount
return float

_fillClockwise protected_oe property

protected bool _fillClockwise
return bool

_fillMethod protected_oe property

protected FillMethod _fillMethod
return FillMethod

_fillOrigin protected_oe property

protected int _fillOrigin
return int

_flip protected_oe property

protected FlipType _flip
return FlipType

_scale9Grid protected_oe property

protected Rect? _scale9Grid
return Rect?

_scaleByTile protected_oe property

protected bool _scaleByTile
return bool

_texture protected_oe property

protected NTexture,FairyGUI _texture
return NTexture

_tileGridIndice protected_oe property

protected int _tileGridIndice
return int