C# Class ScriptRuntime.Scene

场景类 主要用户查找当前场景Actor等功能
Inheritance: ScriptRuntime.Base
显示文件 Open project: Genesis-3D/Genesis-3D Class Usage Examples

Public Methods

Method Description
AddActor ( ScriptRuntime.Actor obj ) : bool

给场景添加一个Actor

FindActor ( System.Guid guid ) : ScriptRuntime.Actor

根据guid返回场景中其对应的Actor

FindActor ( String name ) : ScriptRuntime.Actor

根据Actor的名字返回对应Actor

FindActor ( uint fastID ) : ScriptRuntime.Actor

根据fastID返回场景中其对应的Actor

FindActorInGroup ( uint tagID ) : ScriptRuntime.Actor

根据tagID返回场景中其对应的Actor

FindActorsInGroup ( uint tagID ) : ScriptRuntime.Actor[]

根据GroupID返回场景中其对应Actor列表

GetActor ( int index ) : ScriptRuntime.Actor

根据Actor列表的索引,返回对应的Actor

RemoveActor ( ScriptRuntime.Actor obj ) : bool

移除场景中对应的Actor实例

Private Methods

Method Description
Scene ( ) : System
Scene ( DummyClass__ dummyObj ) : System

Method Details

AddActor() public method

给场景添加一个Actor
public AddActor ( ScriptRuntime.Actor obj ) : bool
obj ScriptRuntime.Actor 要添加的Actor实例
return bool

FindActor() public method

根据guid返回场景中其对应的Actor
public FindActor ( System.Guid guid ) : ScriptRuntime.Actor
guid System.Guid guid的值
return ScriptRuntime.Actor

FindActor() public method

根据Actor的名字返回对应Actor
public FindActor ( String name ) : ScriptRuntime.Actor
name String Actor的名字
return ScriptRuntime.Actor

FindActor() public method

根据fastID返回场景中其对应的Actor
public FindActor ( uint fastID ) : ScriptRuntime.Actor
fastID uint fastID的值
return ScriptRuntime.Actor

FindActorInGroup() public method

根据tagID返回场景中其对应的Actor
public FindActorInGroup ( uint tagID ) : ScriptRuntime.Actor
tagID uint tagID的值
return ScriptRuntime.Actor

FindActorsInGroup() public method

根据GroupID返回场景中其对应Actor列表
public FindActorsInGroup ( uint tagID ) : ScriptRuntime.Actor[]
tagID uint
return ScriptRuntime.Actor[]

GetActor() public method

根据Actor列表的索引,返回对应的Actor
public GetActor ( int index ) : ScriptRuntime.Actor
index int Actor列表中的索引
return ScriptRuntime.Actor

RemoveActor() public method

移除场景中对应的Actor实例
public RemoveActor ( ScriptRuntime.Actor obj ) : bool
obj ScriptRuntime.Actor 要移除的Actor实例
return bool