docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method CreateSubTree

    CreateSubTree(PackedTree, uint, bool)

    Create a complete scene tree

    Declaration
    [HandleProcessCorruptedStateExceptions]
    public OccurrenceList CreateSubTree(PackedTree tree, uint root = 0, bool replaceRoot = true)
    Parameters
    Type Name Description
    PackedTree tree
    uint root

    Specify the root occurrence of the scene

    bool replaceRoot

    If true, the root occurrence will be replaced by the root of the given tree, else it will be added as a child

    Returns
    Type Description
    OccurrenceList
    In This Article
    Back to top
    Copyright © 2025 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)