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

    Class CubeImporter

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

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

    Methods

    BuildCube(CubeSample, GameObject, SceneImportOptions, Boolean)

    Copy cube data from USD to Unity with the given import options.

    Declaration
    public static void BuildCube(CubeSample usdCube, GameObject go, SceneImportOptions options, bool skinnedMesh = false)
    Parameters
    Type Name Description
    CubeSample usdCube
    GameObject go
    SceneImportOptions options
    Boolean skinnedMesh

    Whether the Cube to build is skinned or not. This will allow to determine which Renderer to create on the GameObject (MeshRenderer or SkinnedMeshRenderer). Default value is false (not skinned).

    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