Class UnityMeshToDllSubMeshWithTexture
UnityのMeshから共通ライブラリのSubMeshを生成します。 テクスチャ情報を含みます。 特にエクスポート機能で利用されます。
注意:シーン内蔵のテクスチャについては、テクスチャのファイルパスをC++に渡す目的で、実行時に一時ファイルに書き出します。 そのためDisposeパターンでクリーンアップメソッドを呼んで一時ファイルを消す必要があります。
Inheritance
System.Object
UnityMeshToDllSubMeshWithTexture
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.CityExport.ModelConvert.SubMeshConvert
Assembly: cs.temp.dll.dll
Syntax
public class UnityMeshToDllSubMeshWithTexture : IUnityMeshToDllSubMeshConverter
Constructors
UnityMeshToDllSubMeshWithTexture(Boolean)
Declaration
public UnityMeshToDllSubMeshWithTexture(bool exportDefaultTextures)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | exportDefaultTextures |
Properties
GameMaterials
Declaration
public List<Material> GameMaterials { get; }
Property Value
Type | Description |
---|---|
List<Material> |
Methods
Convert(Mesh, Renderer)
Declaration
public List<SubMesh> Convert(Mesh unityMesh, Renderer renderer)
Parameters
Type | Name | Description |
---|---|---|
Mesh | unityMesh | |
Renderer | renderer |
Returns
Type | Description |
---|---|
List<SubMesh> |
Dispose()
IDisposable実装: 一時ファイルを自動的にクリーンアップします。
Declaration
public void Dispose()
Dispose(Boolean)
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing |
Implements
IDisposable