C# Class a.spritestudio.SpriteRoot

Inheritance: UnityEngine.MonoBehaviour
Mostrar archivo Open project: cfm-art/SpriteStudioPlayerForUGUI Class Usage Examples

Public Methods

Method Description
AddPart ( SpritePart part ) : void

追加

AddSprite ( SpritePartRenderer renderer ) : void

レンダラ追加

Build ( KeyFrameResource resource ) : void

リソースを指定してモーションを切り替え

CellMap ( int index ) : CellMap

セルマップの取得

ChangeMotion ( KeyFrameResource resource ) : void

モーションの変更

DestroySelf ( ) : void

自分がいるゲームオブジェクトを破棄する

FindPart ( string name ) : SpritePart

パーツ検索

NotifyUserData ( SpritePart part, attribute data ) : void

ユーザーデータキーの通知

Pause ( ) : void

一時停止する

Play ( ) : void

再生

SetPosition ( float x, float y ) : void

座標指定

SetRotation ( float degree ) : void

回転指定

SetScale ( float x, float y ) : void

拡縮指定

Setup ( int fps, int frames, float pivotX, float pivotY ) : void

基本設定

SetupCellMaps ( List cellMaps ) : void

セルマップの設定

SetupSpriteHolder ( ) : void

Spriteを保持する場所を設定

UpdatePriority ( ) : void

優先度の更新

Private Methods

Method Description
LateUpdate ( ) : void

遅延更新

OnDestroy ( ) : void

破棄

Start ( ) : void

開始

Update ( ) : void

更新

Method Details

AddPart() public method

追加
public AddPart ( SpritePart part ) : void
part SpritePart
return void

AddSprite() public method

レンダラ追加
public AddSprite ( SpritePartRenderer renderer ) : void
renderer SpritePartRenderer
return void

Build() public method

リソースを指定してモーションを切り替え
public Build ( KeyFrameResource resource ) : void
resource KeyFrameResource
return void

CellMap() public method

セルマップの取得
public CellMap ( int index ) : CellMap
index int
return CellMap

ChangeMotion() public method

モーションの変更
public ChangeMotion ( KeyFrameResource resource ) : void
resource KeyFrameResource
return void

DestroySelf() public method

自分がいるゲームオブジェクトを破棄する
public DestroySelf ( ) : void
return void

FindPart() public method

パーツ検索
public FindPart ( string name ) : SpritePart
name string
return SpritePart

NotifyUserData() public method

ユーザーデータキーの通知
public NotifyUserData ( SpritePart part, attribute data ) : void
part SpritePart
data attribute
return void

Pause() public method

一時停止する
public Pause ( ) : void
return void

Play() public method

再生
public Play ( ) : void
return void

SetPosition() public method

座標指定
public SetPosition ( float x, float y ) : void
x float
y float
return void

SetRotation() public method

回転指定
public SetRotation ( float degree ) : void
degree float
return void

SetScale() public method

拡縮指定
public SetScale ( float x, float y ) : void
x float
y float
return void

Setup() public method

基本設定
public Setup ( int fps, int frames, float pivotX, float pivotY ) : void
fps int
frames int
pivotX float
pivotY float
return void

SetupCellMaps() public method

セルマップの設定
public SetupCellMaps ( List cellMaps ) : void
cellMaps List
return void

SetupSpriteHolder() public method

Spriteを保持する場所を設定
public SetupSpriteHolder ( ) : void
return void

UpdatePriority() public method

優先度の更新
public UpdatePriority ( ) : void
return void