Class MeshImporter | USD | 2.0.0-exp.1
docs.unity3d.com
    Show / Hide Table of Contents

    Class MeshImporter

    A collection of methods used for importing USD Mesh data into Unity.

    Inheritance
    Object
    MeshImporter
    Namespace: Unity.Formats.USD
    Syntax
    public static class MeshImporter

    Methods

    BuildMesh(String, MeshSample, MeshImporter.GeometrySubsets, GameObject, SceneImportOptions, Boolean)

    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, bool isDynamic)
    Parameters
    Type Name Description
    String path
    MeshSample usdMesh
    MeshImporter.GeometrySubsets geomSubsets
    GameObject go
    SceneImportOptions options
    Boolean isDynamic

    BuildSkinnedMesh(String, MeshSample, MeshImporter.GeometrySubsets, GameObject, SceneImportOptions, Boolean)

    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, bool isDynamic)
    Parameters
    Type Name Description
    String path
    MeshSample usdMesh
    MeshImporter.GeometrySubsets geomSubsets
    GameObject go
    SceneImportOptions options
    Boolean isDynamic

    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
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023