Struct SceneTag | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Struct SceneTag

    A Unity-defined shared component assigned to all entities in the same subscene.

    Namespace: Unity.Entities
    Syntax
    [Serializable]
    public struct SceneTag : ISharedComponentData, IEquatable<SceneTag>

    Fields

    SceneEntity

    The root entity of the subscene.

    Declaration
    public Entity SceneEntity
    Field Value
    Type Description
    Entity

    Methods

    Equals(SceneTag)

    Two SceneTags are equal if they have the same root subscene entity.

    Declaration
    public bool Equals(SceneTag other)
    Parameters
    Type Name Description
    SceneTag other

    The other SceneTag.

    Returns
    Type Description
    System.Boolean

    True if both SceneTags refer to the same Subscene. False, otherwise.

    GetHashCode()

    A unique hash code for comparison.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    System.Int32

    The scene entity has code.

    Overrides
    System.ValueType.GetHashCode()

    ToString()

    A string for logging.

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String

    A string identifying the root subscene entity.

    Overrides
    System.ValueType.ToString()
    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