docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct EntitySceneReference

    Encapsulates a serializable reference to a Scene asset.

    Namespace: Unity.Entities.Serialization
    Assembly: Unity.Entities.dll
    Syntax
    [Serializable]
    public struct EntitySceneReference

    Constructors

    Name Description
    EntitySceneReference(Hash128, int)

    Initializes and returns an instance of EntitySceneReference.

    EntitySceneReference(SceneAsset)

    Initializes and returns an instance of EntitySceneReference.

    Properties

    Name Description
    IsReferenceValid

    Returns true if the reference has a valid id. In the editor, additional checks for the correct GenerationType and the existence of the referenced asset are performed.

    Methods

    Name Description
    Equals(object)

    Overrides the default Object.Equals method.

    Equals(EntitySceneReference)

    Checks if this reference holds the same asset GUID as the other reference.

    GetHashCode()

    Overrides the default Object.GetHashCode method.

    In This Article
    Back to top
    Copyright © 2024 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)