docs.unity.cn
    Show / Hide Table of Contents

    Method WriteEntitySectionBundle

    WriteEntitySectionBundle(EntityManager, Hash128, String, AssetImportContext, Int32, List<ReferencedUnityObjects>)

    Writes an EntityManager into a collection of Entity Section files. This is referred to as an entity section bundle. It is a header + entity binary files for each section + hybrid reference objects for each section, this collection of files is loadable by the SceneSystem. This function automatically slices an the EntityManager into sections based on the SceneSection shared component and writes each section to disk seperately. This function can only be used during asset import.

    Declaration
    public static SceneSectionData[] WriteEntitySectionBundle(EntityManager entityManager, Hash128 sceneGUID, string sceneName, AssetImportContext importContext, int framesToRetainBlobAssets = 0, List<ReferencedUnityObjects> sectionRefObjs = null)
    Parameters
    Type Name Description
    EntityManager entityManager
    Hash128 sceneGUID
    String sceneName
    AssetImportContext importContext
    Int32 framesToRetainBlobAssets
    List<ReferencedUnityObjects> sectionRefObjs
    Returns
    Type Description
    SceneSectionData[]
    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Wednesday, July 6, 2022
    Terms of use