C# Class ScriptRuntime.SoundSource

Inheritance: ScriptRuntime.Component
显示文件 Open project: Genesis-3D/Genesis-3D Class Usage Examples

Public Properties

Property Type Description
thisType System.Type

Public Methods

Method Description
GetLoadPriority ( ) : int

获得声音资源的优先级

GetSoundResID ( ) : String

获得声音名字

IsAllLoaded ( ) : bool

判断声音资源是否被加载成功

Pause ( ) : void

暂停播放声音

Play ( ) : void

播放声音

SetSoundResID ( String name ) : void

重载函数,设置声音名字

SetSoundResID ( String name, int loadpriority ) : void

重载函数,设置声音名字

Stop ( ) : void

停止播放声音

Private Methods

Method Description
SoundSource ( DummyClass__ dummy ) : System

Method Details

GetLoadPriority() public method

获得声音资源的优先级
public GetLoadPriority ( ) : int
return int

GetSoundResID() public method

获得声音名字
public GetSoundResID ( ) : String
return String

IsAllLoaded() public method

判断声音资源是否被加载成功
public IsAllLoaded ( ) : bool
return bool

Pause() public method

暂停播放声音
public Pause ( ) : void
return void

Play() public method

播放声音
public Play ( ) : void
return void

SetSoundResID() public method

重载函数,设置声音名字
public SetSoundResID ( String name ) : void
name String 声音名字
return void

SetSoundResID() public method

重载函数,设置声音名字
public SetSoundResID ( String name, int loadpriority ) : void
name String 声音名字
loadpriority int 优先级
return void

Stop() public method

停止播放声音
public Stop ( ) : void
return void

Property Details

thisType public_oe static_oe property

音源组件的组件类型
public static Type,System thisType
return System.Type