C# Class a.spritestudio.SpritePartRenderer

パーツ
Inheritance: UnityEngine.UI.Graphic
Datei anzeigen Open project: cfm-art/SpriteStudioPlayerForUGUI Class Usage Examples

Public Methods

Method Description
SetCellMap ( int index, int mapIndex ) : void

セルマップの指定

SetPart ( SpritePart part ) : void

パーツの設定

Setup ( SpritePart part ) : void

初期化

SetupVertices ( ) : void

頂点バッファ生成

TransformVertices ( Vector2 leftTop, Vector2 rightTop, Vector2 leftBottom, Vector2 rightBottom ) : void

頂点変換

UpdateTexCoordS ( float value ) : void

UV更新

UpdateTexCoordT ( float value ) : void

UV更新

UpdateTexCoordU ( float value ) : void

UV更新

UpdateTexCoordV ( float value ) : void

UV更新

Protected Methods

Method Description
OnFillVBO ( List vbo ) : void

メッシュ生成(Unity5.1以前)

OnPopulateMesh ( Mesh mesh ) : void

メッシュ生成 (5.2版)

OnPopulateMesh ( VertexHelper vh ) : void

メッシュ生成(5.3以降版)

Start ( ) : void

GOの初期化時

Private Methods

Method Description
UpdatePosition ( int index, Vector3 position ) : void

頂点座標の更新

UpdatePositions ( bool isDirty = true ) : void

頂点座標の一括更新

UpdateTextureCoord ( int index, Vector2 uv ) : void

UVの更新

UpdateTextureCoords ( bool isDirty = true ) : void

UVの一括更新

UpdateVertices ( bool isDirty = true ) : void

頂点情報の更新

Method Details

OnFillVBO() protected method

メッシュ生成(Unity5.1以前)
protected OnFillVBO ( List vbo ) : void
vbo List
return void

OnPopulateMesh() protected method

メッシュ生成 (5.2版)
protected OnPopulateMesh ( Mesh mesh ) : void
mesh UnityEngine.Mesh
return void

OnPopulateMesh() protected method

メッシュ生成(5.3以降版)
protected OnPopulateMesh ( VertexHelper vh ) : void
vh UnityEngine.UI.VertexHelper
return void

SetCellMap() public method

セルマップの指定
public SetCellMap ( int index, int mapIndex ) : void
index int
mapIndex int
return void

SetPart() public method

パーツの設定
public SetPart ( SpritePart part ) : void
part SpritePart
return void

Setup() public method

初期化
public Setup ( SpritePart part ) : void
part SpritePart
return void

SetupVertices() public method

頂点バッファ生成
public SetupVertices ( ) : void
return void

Start() protected method

GOの初期化時
protected Start ( ) : void
return void

TransformVertices() public method

頂点変換
public TransformVertices ( Vector2 leftTop, Vector2 rightTop, Vector2 leftBottom, Vector2 rightBottom ) : void
leftTop UnityEngine.Vector2
rightTop UnityEngine.Vector2
leftBottom UnityEngine.Vector2
rightBottom UnityEngine.Vector2
return void

UpdateTexCoordS() public method

UV更新
public UpdateTexCoordS ( float value ) : void
value float
return void

UpdateTexCoordT() public method

UV更新
public UpdateTexCoordT ( float value ) : void
value float
return void

UpdateTexCoordU() public method

UV更新
public UpdateTexCoordU ( float value ) : void
value float
return void

UpdateTexCoordV() public method

UV更新
public UpdateTexCoordV ( float value ) : void
value float
return void