Class SubMesh
Inheritance
System.Object
SubMesh
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: PLATEAU.PolygonMesh
Assembly: cs.temp.dll.dll
Syntax
public class SubMesh
Constructors
SubMesh(IntPtr)
Declaration
public SubMesh(IntPtr handle)
Parameters
Type | Name | Description |
---|---|---|
IntPtr | handle |
Properties
EndIndex
Declaration
public int EndIndex { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
GameMaterialID
GameMaterialIDは、SubMeshにゲームエンジンのマテリアルを持たせたい場合に、 TexturePathやMaterialの代わりに利用するIDです。 特に分割結合でゲームエンジンのマテリアルを維持するために利用します。 IDがどのマテリアルを指すかはゲームエンジンが決めます。
Declaration
public int GameMaterialID { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Handle
Declaration
public IntPtr Handle { get; }
Property Value
Type | Description |
---|---|
IntPtr |
Material
Declaration
public Material Material { get; }
Property Value
Type | Description |
---|---|
Material |
StartIndex
Declaration
public int StartIndex { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
TexturePath
Declaration
public string TexturePath { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
Create(Int32, Int32, String)
Declaration
public static SubMesh Create(int startIndex, int endIndex, string texturePath)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | startIndex | |
System.Int32 | endIndex | |
System.String | texturePath |
Returns
Type | Description |
---|---|
SubMesh |
DebugPrint(StringBuilderWithIndent)
Declaration
public void DebugPrint(StringBuilderWithIndent sb)
Parameters
Type | Name | Description |
---|---|---|
StringBuilderWithIndent | sb |
Dispose()
取扱注意: 通常は Mesh が廃棄されるときに C++側で SubMesh も廃棄されるので、 このメソッドを呼ぶ必要はありません。 Mesh に属さず、C#側で明示的に Create した SubMesh のみ Dispose() してください。 それ以外のタイミングで呼ぶとメモリ違反でUnityが落ちます。
Declaration
public void Dispose()