docs.unity.cn
    Show / Hide Table of Contents

    Method ConvertAndWriteEntityScene

    ConvertAndWriteEntityScene(Scene, GameObjectConversionSettings, List<ReferencedUnityObjects>)

    Converts a loaded Unity scene to a temporarily constructed EntityManager and then writes it to disk as an Entity Section Bundle.

    Declaration
    public static SceneSectionData[] ConvertAndWriteEntityScene(Scene scene, GameObjectConversionSettings settings, List<ReferencedUnityObjects> sectionRefObjs = null)
    Parameters
    Type Name Description
    Scene scene
    GameObjectConversionSettings settings
    List<ReferencedUnityObjects> sectionRefObjs
    Returns
    Type Description
    SceneSectionData[]
    Remarks

    That is a header + entity binary files for each section + hybrid reference objects for each section. This format is loadable by the SceneSystem. Automatically slices an the EntityManager into sections based on the SceneSection shared component and writes each section to disk seperately. This method can only be used during asset import.

    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Wednesday, July 6, 2022
    Terms of use