docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method AddScene

    AddScene(GameObject[], string)

    Adds a scene to the glTF. If the conversion to glTF was not flawless (i.e. parts of the scene were not converted 100% correctly) you still might be able to export a glTF. You may use the CollectingLogger to analyze what exactly went wrong.

    Declaration
    public bool AddScene(GameObject[] gameObjects, string name = null)
    Parameters
    Type Name Description
    GameObject[] gameObjects

    Root level GameObjects (will get added recursively)

    string name

    Name of the scene

    Returns
    Type Description
    bool

    True if the scene was added flawlessly, false otherwise

    In This Article
    Back to top
    Copyright © 2024 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)