docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method BuildCube

    BuildCube(CubeSample, GameObject, SceneImportOptions, bool)

    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

    The input usd cube sample to convert

    GameObject go

    The gameobject to add a cube mesh component to.

    SceneImportOptions options

    The import options used to import the cube

    bool skinnedMesh

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

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)