C# Class ScriptRuntime.MeshRenderComponent

网格渲染组件类
Inheritance: RenderComponent
Mostra file Open project: Genesis-3D/Genesis-3D Class Usage Examples

Public Properties

Property Type Description
thisType System.Type

Public Methods

Method Description
GetMeshID ( ) : string

获取网格组件ID

GetTriangleCount ( ) : int

获得网格组件中模型的三角面数

GetVertexCount ( ) : int

获得网格组件中模型的顶点数

SetDrawDepth ( bool bDraw ) : void

设置绘制深度

SetMeshID ( String sMeshId, int priority ) : void

为网格组件设置模型资源

Protected Methods

Method Description
MeshRenderComponent ( ) : System

Private Methods

Method Description
MeshRenderComponent ( DummyClass__ dummy ) : System

Method Details

GetMeshID() public method

获取网格组件ID
public GetMeshID ( ) : string
return string

GetTriangleCount() public method

获得网格组件中模型的三角面数
public GetTriangleCount ( ) : int
return int

GetVertexCount() public method

获得网格组件中模型的顶点数
public GetVertexCount ( ) : int
return int

MeshRenderComponent() protected method

protected MeshRenderComponent ( ) : System
return System

SetDrawDepth() public method

设置绘制深度
public SetDrawDepth ( bool bDraw ) : void
bDraw bool
return void

SetMeshID() public method

为网格组件设置模型资源
public SetMeshID ( String sMeshId, int priority ) : void
sMeshId String 模型资源路径
priority int 加载的方式,0为同步加载,1为异步加载
return void

Property Details

thisType public_oe static_oe property

public static Type,System thisType
return System.Type