Hash.Int
static IdHash Int(int val)
This will hash an integer into a hash value that StereoKit can use. This is helpful for adding in some uniqueness using something like a for loop index. This may be best when combined with additional hashes.
| int val | An integer that will be hashed. |
| RETURNS: IdHash | A StereoKit hash representing the provided integer. |
static IdHash Int(int val, IdHash root)
This will hash an integer into a hash value that StereoKit can use. This is helpful for adding in some uniqueness using something like a for loop index. This overload allows you to combine your hash with an existing hash.
| int val | An integer that will be hashed. |
| IdHash root | The hash value this new hash will start from. |
| RETURNS: IdHash | A StereoKit hash representing a combination of the provided string and the root hash. |
Found an issue with these docs, or have some additional questions? Create an Issue on Github!