C# Class ScriptRuntime.SpriteRenderComponent

Inheritance: ScriptRuntime.Component
Mostra file Open project: Genesis-3D/Genesis-3D Class Usage Examples

Public Properties

Property Type Description
thisType System.Type

Public Methods

Method Description
Pause ( ) : void

暂定动画

Play ( ) : void

播放动画

RemoveAnimation ( ) : void

移除动画的设置

RemoveBlock ( ) : void

移除图块的设置

Replay ( ) : void

重新播放动画

SetAnimation ( string name ) : void

设置动画

SetAnimation ( string name, int loops, float speed, bool play ) : void

设置动画

SetBlock ( string name ) : void

设置图块

Setup ( string packID ) : void

通过资源包ID装载组件

SpriteRenderComponent ( ) : System

创建一个精灵

Stop ( ) : void

停止动画

Private Methods

Method Description
ICall_SpriteRenderComponent_Bind ( SpriteRenderComponent self ) : void
ICall_SpriteRenderComponent_GetAnimationLoops ( SpriteRenderComponent self ) : int
ICall_SpriteRenderComponent_GetAnimationName ( SpriteRenderComponent self ) : String
ICall_SpriteRenderComponent_GetAnimationSpeed ( SpriteRenderComponent self ) : float
ICall_SpriteRenderComponent_GetBlockName ( SpriteRenderComponent self ) : String
ICall_SpriteRenderComponent_GetPackageID ( SpriteRenderComponent self ) : String
ICall_SpriteRenderComponent_GetPackageID ( SpriteRenderComponent self, String pMonoStr ) : String
ICall_SpriteRenderComponent_GetPlayOnWake ( SpriteRenderComponent self ) : bool
ICall_SpriteRenderComponent_IsAnimationPlaying ( SpriteRenderComponent self ) : bool
ICall_SpriteRenderComponent_Pause ( SpriteRenderComponent self ) : void
ICall_SpriteRenderComponent_Play ( SpriteRenderComponent self ) : void
ICall_SpriteRenderComponent_RemoveAnimation ( SpriteRenderComponent self ) : void
ICall_SpriteRenderComponent_RemoveBlock ( SpriteRenderComponent self ) : void
ICall_SpriteRenderComponent_Replay ( SpriteRenderComponent self ) : void
ICall_SpriteRenderComponent_SetAnimation ( SpriteRenderComponent self, String pMonoStr, int loops, bool play, float speed ) : void
ICall_SpriteRenderComponent_SetAnimationSpeed ( SpriteRenderComponent self, float speed ) : void
ICall_SpriteRenderComponent_SetBlock ( SpriteRenderComponent self, String pMonoStr ) : void
ICall_SpriteRenderComponent_SetPlayOnWake ( SpriteRenderComponent self, bool value ) : void
ICall_SpriteRenderComponent_Setup ( SpriteRenderComponent self, String pMonoStr ) : void
ICall_SpriteRenderComponent_Stop ( SpriteRenderComponent self ) : void
SpriteRenderComponent ( DummyClass__ dummy ) : System

Method Details

Pause() public method

暂定动画
public Pause ( ) : void
return void

Play() public method

播放动画
public Play ( ) : void
return void

RemoveAnimation() public method

移除动画的设置
public RemoveAnimation ( ) : void
return void

RemoveBlock() public method

移除图块的设置
public RemoveBlock ( ) : void
return void

Replay() public method

重新播放动画
public Replay ( ) : void
return void

SetAnimation() public method

设置动画
public SetAnimation ( string name ) : void
name string 动画名
return void

SetAnimation() public method

设置动画
public SetAnimation ( string name, int loops, float speed, bool play ) : void
name string 动画名
loops int 播放循环
speed float 动画速度,默认为1.0f.
play bool 是否现在播放
return void

SetBlock() public method

设置图块
public SetBlock ( string name ) : void
name string T图块名称
return void

Setup() public method

通过资源包ID装载组件
public Setup ( string packID ) : void
packID string 资源包ID
return void

SpriteRenderComponent() public method

创建一个精灵
public SpriteRenderComponent ( ) : System
return System

Stop() public method

停止动画
public Stop ( ) : void
return void

Property Details

thisType public_oe static_oe property

public static Type,System thisType
return System.Type