docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct RawHash

    Stores hash information as an array of bytes.

    Implements
    IEquatable<RawHash>
    Inherited Members
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: UnityEditor.Build.Pipeline.Utilities
    Assembly: Unity.ScriptableBuildPipeline.Editor.dll
    Syntax
    [Serializable]
    public struct RawHash : IEquatable<RawHash>

    Methods

    Equals(object)

    Determines if the current hash instance is equivalent to the specified hash.

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

    The hash to compare to.

    Returns
    Type Description
    bool

    Returns true if the hashes are equivalent. Returns false otherwise.

    Overrides
    ValueType.Equals(object)

    Equals(RawHash)

    Determines if the current hash instance is equivalent to the specified hash.

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

    The hash to compare to.

    Returns
    Type Description
    bool

    Returns true if the hashes are equivalent. Returns false otherwise.

    GetHashCode()

    Creates the hash code for the cache entry.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    Returns the hash code for the cache entry.

    Overrides
    ValueType.GetHashCode()

    ToBytes()

    Converts the hash to bytes.

    Declaration
    public byte[] ToBytes()
    Returns
    Type Description
    byte[]

    Returns the converted hash as an array of bytes.

    ToGUID()

    Converts the hash to a guid.

    Declaration
    public GUID ToGUID()
    Returns
    Type Description
    GUID

    Returns the converted hash as a guid.

    ToHash128()

    Converts the hash to Hash128 format.

    Declaration
    public Hash128 ToHash128()
    Returns
    Type Description
    Hash128

    Returns the converted hash.

    ToString()

    Converts the hash to a formatted string.

    Declaration
    public override string ToString()
    Returns
    Type Description
    string

    Returns the hash as a string.

    Overrides
    ValueType.ToString()

    Operators

    operator ==(RawHash, RawHash)

    Determines if the left hash instance is equivalent to the right hash.

    Declaration
    public static bool operator ==(RawHash left, RawHash right)
    Parameters
    Type Name Description
    RawHash left

    The hash to compare against.

    RawHash right

    The hash to compare to.

    Returns
    Type Description
    bool

    Returns true if the hashes are equivalent. Returns false otherwise.

    operator !=(RawHash, RawHash)

    Determines if the left hash instance is not equivalent to the right hash.

    Declaration
    public static bool operator !=(RawHash left, RawHash right)
    Parameters
    Type Name Description
    RawHash left

    The hash to compare against.

    RawHash right

    The hash to compare to.

    Returns
    Type Description
    bool

    Returns true if the hashes are not equivalent. Returns false otherwise.

    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)