docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct NetworkSceneId

    This is used to identify networked objects in a scene. These values are allocated in the editor and are persistent for the lifetime of the object in the scene.

    Implements
    IEquatable<NetworkSceneId>
    Inherited Members
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: UnityEngine.Networking
    Assembly: com.unity.multiplayer-hlapi.Runtime.dll
    Syntax
    [Serializable]
    [Obsolete("The high level API classes are deprecated and will be removed in the future.")]
    public struct NetworkSceneId : IEquatable<NetworkSceneId>

    Constructors

    NetworkSceneId(uint)

    Declaration
    public NetworkSceneId(uint value)
    Parameters
    Type Name Description
    uint value

    Properties

    Value

    The internal value for this object.

    Declaration
    public uint Value { get; }
    Property Value
    Type Description
    uint

    Methods

    Equals(object)

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    object obj
    Returns
    Type Description
    bool
    Overrides
    ValueType.Equals(object)

    Equals(NetworkSceneId)

    Declaration
    public bool Equals(NetworkSceneId other)
    Parameters
    Type Name Description
    NetworkSceneId other
    Returns
    Type Description
    bool

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int
    Overrides
    ValueType.GetHashCode()

    IsEmpty()

    Returns true if the value is zero. Non-scene objects - ones which are spawned at runtime will have a sceneId of zero.

    Declaration
    public bool IsEmpty()
    Returns
    Type Description
    bool

    True if zero.

    ToString()

    Returns a string like SceneId:value.

    Declaration
    public override string ToString()
    Returns
    Type Description
    string

    String representation of this object.

    Overrides
    ValueType.ToString()

    Operators

    operator ==(NetworkSceneId, NetworkSceneId)

    Declaration
    public static bool operator ==(NetworkSceneId c1, NetworkSceneId c2)
    Parameters
    Type Name Description
    NetworkSceneId c1
    NetworkSceneId c2
    Returns
    Type Description
    bool

    operator !=(NetworkSceneId, NetworkSceneId)

    Declaration
    public static bool operator !=(NetworkSceneId c1, NetworkSceneId c2)
    Parameters
    Type Name Description
    NetworkSceneId c1
    NetworkSceneId c2
    Returns
    Type Description
    bool

    Implements

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