⚠ Preview docs — built from the develop branch and may be unstable. Go to the stable docs.

Hash.String

static IdHash String(string str)

This will hash the UTF8 representation of the given string into a hash value that StereoKit can use.

   
string str A C# string that will be converted to UTF8, and then hashed.
RETURNS: IdHash A StereoKit hash representing the provided string.
static IdHash String(string str, IdHash root)

This will hash the UTF8 representation of the given string into a hash value that StereoKit can use. This overload allows you to combine your hash with an existing hash.

   
string str A C# string that will be converted to UTF8, and then 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!