27 Slicer 27 Slicer
Search Results for

    Show / Hide Table of Contents

    Method CalculateHash

    CalculateHash(Object)

    Calculates the hash of an UnityEngine.Object.

    Declaration
    public static Hash128 CalculateHash(Object o)
    Parameters
    TypeNameDescription
    Objecto

    The object to calculate the hash of.

    Returns
    TypeDescription
    Hash128

    The calculated hash.

    Remarks

    UnityEngine.Object.GetInstanceID() is used to calculate the hash.

    CalculateHash<T>(T)

    Calculates the hash of a struct.

    Declaration
    public static Hash128 CalculateHash<T>(T s)
        where T : struct
    Parameters
    TypeNameDescription
    Ts

    The struct to hash.

    Returns
    TypeDescription
    Hash128

    The calculated hash.

    Type Parameters
    NameDescription
    T

    the type of object to hash, must be of type struct.

    CalculateHash(Boolean, Int32)

    Calculates the hash of a bool.

    Declaration
    public static Hash128 CalculateHash(bool b, int shift)
    Parameters
    TypeNameDescription
    Booleanb

    The bool to hash.

    Int32shift

    How many bits to shift the bool by after converting it to a UInt32

    Returns
    TypeDescription
    Hash128

    The calculated hash.

    CalculateHash(Vector3)

    Calculates the hash of a Vector3.

    Declaration
    public static Hash128 CalculateHash(Vector3 v)
    Parameters
    TypeNameDescription
    Vector3v

    The Vector3 to hash.

    Returns
    TypeDescription
    Hash128

    The calculated hash.

    CalculateHash(Matrix4x4)

    Calculates the hash of a Matrix4x4.

    Declaration
    public static Hash128 CalculateHash(Matrix4x4 m)
    Parameters
    TypeNameDescription
    Matrix4x4m

    The Matrix4x4 to hash.

    Returns
    TypeDescription
    Hash128

    The calculated hash.

    CalculateHash(Bounds)

    Calculates the hash of a Bounds.

    Declaration
    public static Hash128 CalculateHash(Bounds b)
    Parameters
    TypeNameDescription
    Boundsb

    The Bounds to hash.

    Returns
    TypeDescription
    Hash128

    The calculated hash.

      ☀
      ☾
      In This Article
      Back to top
      27 Slicer documentation | Copyright 2021 Deftly Games
      ☀
      ☾