Class MeshImporter
A collection of methods used for importing USD Mesh data into Unity.
Namespace: Unity.Formats.USD
Syntax
public static class MeshImporter
Methods
BuildMesh(String, MeshSample, MeshImporter.GeometrySubsets, GameObject, SceneImportOptions)
Copy mesh data from USD to Unity with the given import options.
Declaration
public static void BuildMesh(string path, MeshSample usdMesh, MeshImporter.GeometrySubsets geomSubsets, GameObject go, SceneImportOptions options)
Parameters
Type | Name | Description |
---|---|---|
String | path | |
MeshSample | usdMesh | |
MeshImporter.GeometrySubsets | geomSubsets | |
GameObject | go | |
SceneImportOptions | options |
BuildSkinnedMesh(String, MeshSample, MeshImporter.GeometrySubsets, GameObject, SceneImportOptions)
Copy mesh data from USD to Unity with the given import options, setup for skinning.
Declaration
public static void BuildSkinnedMesh(string path, MeshSample usdMesh, MeshImporter.GeometrySubsets geomSubsets, GameObject go, SceneImportOptions options)
Parameters
Type | Name | Description |
---|---|---|
String | path | |
MeshSample | usdMesh | |
MeshImporter.GeometrySubsets | geomSubsets | |
GameObject | go | |
SceneImportOptions | options |
ReadGeomSubsets(Scene, String)
Reads geometry subsets if authored. If not authored, returns an empty dictionary.
Declaration
public static MeshImporter.GeometrySubsets ReadGeomSubsets(Scene scene, string path)
Parameters
Type | Name | Description |
---|---|---|
Scene | scene | |
String | path |
Returns
Type | Description |
---|---|
MeshImporter.GeometrySubsets |