docs.unity3d.com
Version: 

    Struct PackedTree

    Packed view of the scene tree

    Fields

    occurrences OccurrenceList: list of all occurrences of the tree. (Note: all parent occurrences appears before their children, thus the first occurrence is the root)

    parents IntList: specifies the parent index for each occurrence (same index than occurrences). root's parent is -1

    names StringList: name of each occurrence (same index than occurrences)

    visible InheritableBoolList: visibility of each occurrence (same index than occurrences)

    materials MaterialList: material identifier of each occurrence (same index than occurrences)

    transformIndices IntList: indices of transform matrix of each occurrence (same index than occurrences). (Note: Identity matrix is always 0)

    transformMatrices Matrix4List: Matrices referenced by transformIndices. (Note: The first matrix is always Identity)

    customProperties StringPairListList: custom properties of each occurrence (same index than occurrences), pair is name -> value

    Functions accepting this type or a list of this type as a parameter:

    • scene.createSubTree
    Namespace: Scene
    Syntax
    Version 2025.2.0.1
    • 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.