Tanoda
Leap.Unity.Hash Struct Reference
Inheritance diagram for Leap.Unity.Hash:

Public Member Functions

 Hash (int hash)
 
void Add< T > (T t)
 
void AddRange< T > (List< T > sequence)
 
IEnumerator GetEnumerator ()
 
override int GetHashCode ()
 
override bool Equals (object obj)
 
bool Equals (Hash other)
 

Static Public Member Functions

static Hash GetHierarchyHash (Transform root)
 
static Hash GetDataHash (Transform transform)
 Returns a hash of the Transform in addition to it's data. Changing either the position, rotation, or scale of a transform will result in a different hash. Two transforms with the same position rotation and scale will not have the same hash! More...
 
static implicit operator Hash (int hash)
 
static implicit operator int (Hash hash)
 

Detailed Description

Definition at line 17 of file Hash.cs.

Constructor & Destructor Documentation

◆ Hash()

Leap.Unity.Hash.Hash ( int  hash)

Definition at line 20 of file Hash.cs.

Member Function Documentation

◆ Add< T >()

void Leap.Unity.Hash.Add< T > ( t)

Definition at line 24 of file Hash.cs.

◆ AddRange< T >()

void Leap.Unity.Hash.AddRange< T > ( List< T >  sequence)

Definition at line 29 of file Hash.cs.

◆ Equals() [1/2]

bool Leap.Unity.Hash.Equals ( Hash  other)

Definition at line 106 of file Hash.cs.

◆ Equals() [2/2]

override bool Leap.Unity.Hash.Equals ( object  obj)

Definition at line 98 of file Hash.cs.

◆ GetDataHash()

static Hash Leap.Unity.Hash.GetDataHash ( Transform  transform)
static

Returns a hash of the Transform in addition to it's data. Changing either the position, rotation, or scale of a transform will result in a different hash. Two transforms with the same position rotation and scale will not have the same hash!

Definition at line 73 of file Hash.cs.

◆ GetEnumerator()

IEnumerator Leap.Unity.Hash.GetEnumerator ( )

Definition at line 90 of file Hash.cs.

◆ GetHashCode()

override int Leap.Unity.Hash.GetHashCode ( )

Definition at line 94 of file Hash.cs.

◆ GetHierarchyHash()

static Hash Leap.Unity.Hash.GetHierarchyHash ( Transform  root)
static

Definition at line 44 of file Hash.cs.

◆ operator Hash()

static implicit Leap.Unity.Hash.operator Hash ( int  hash)
static

Definition at line 110 of file Hash.cs.

◆ operator int()

static implicit Leap.Unity.Hash.operator int ( Hash  hash)
static

Definition at line 114 of file Hash.cs.


The documentation for this struct was generated from the following file: