docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct ModelStreamId

    Unique identifier of a IStreamableModel. This allow indirection to the IStreamableModel and keep the link even after the IStreamableModel as been disposed of.

    Implements
    IEquatable<ModelStreamId>
    Inherited Members
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    Namespace: Unity.Cloud.DataStreaming.Runtime
    Assembly: solution.dll
    Syntax
    public readonly struct ModelStreamId : IEquatable<ModelStreamId>

    Methods

    Equals(object)

    Get if this instance is the same as the given obj.

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    object obj

    Compare with this instance.

    Returns
    Type Description
    bool

    true if both instances represent the same; false otherwise.

    Overrides
    ValueType.Equals(object)

    Equals(ModelStreamId)

    Get if two ModelStreamId represent the same.

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

    Compare with this instance.

    Returns
    Type Description
    bool

    true if both instances represent the same; false otherwise.

    GetHashCode()

    Compute a hash code for the object.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    A hash code for the current object.

    Overrides
    ValueType.GetHashCode()
    Remarks
    • You should not assume that equal hash codes imply object equality.
    • You should never persist or use a hash code outside the application domain in which it was created, because the same object may hash differently across application domains, processes, and platforms.

    ToString()

    Get the string representation of this ModelStreamId.

    Declaration
    public override string ToString()
    Returns
    Type Description
    string

    The string result.

    Overrides
    ValueType.ToString()

    Operators

    operator ==(ModelStreamId, ModelStreamId)

    Get if two ModelStreamId represent the same.

    Declaration
    public static bool operator ==(ModelStreamId first, ModelStreamId second)
    Parameters
    Type Name Description
    ModelStreamId first

    Compare with this first instance.

    ModelStreamId second

    Compare with this other instance.

    Returns
    Type Description
    bool

    true if both instances represent the same; false otherwise.

    operator !=(ModelStreamId, ModelStreamId)

    Get if two ModelStreamId does not represent the same.

    Declaration
    public static bool operator !=(ModelStreamId first, ModelStreamId second)
    Parameters
    Type Name Description
    ModelStreamId first

    Compare with this first instance.

    ModelStreamId second

    Compare with this other instance.

    Returns
    Type Description
    bool

    true if both instances are not the same; false if both instances are the same.

    Implements

    IEquatable<T>
    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)