docs.unity.cn
    Show / Hide Table of Contents

    Method GetSceneFileValue

    GetSceneFileValue(UntypedWeakReferenceId)

    The scene file. This is needed to integrate when the scene is loaded with the autoIntegrate value set to false.

    Declaration
    [ExcludeFromBurstCompatTesting("References managed engine API and static data")]
    [Obsolete("This property is no longer valid.  The scene file does not exist in all cases (e.g. play mode).")]
    public static ContentSceneFile GetSceneFileValue(UntypedWeakReferenceId sceneId)
    Parameters
    Type Name Description
    UntypedWeakReferenceId sceneId

    The runtime id of the scene.

    Returns
    Type Description
    ContentSceneFile

    The scene file. If the scene is not loaded, the returned scene will be invalid.

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • 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 on 18 October 2023