StringHash(string)
Creates a hash for a string.
Read time 1 minuteLast updated 4 hours ago
Definition
- Type: Constructor
- Namespace: Unity.Animations
- Assembly: UnityEngine.AnimationCoreModule
[ExcludeFromBurstCompatTesting("Takes managed string")]public StringHash(string str)
Parameters
The string to hash, such as a transform path or a property name.
Remarks
The hash is the CRC32 of the string, the same as the identifiers that rigs and clips use for transform paths and property names. A null or empty string gives a hash of 0, which StringHash.IsNullOrEmpty reports as null or empty.