Skip to main content

Animator.StringToHash(string name)

Generates an parameter id from a string.

Parameters:

NameTypeDescription
namestringThe string to convert to Id.

Returns:

typeDescription
numberparameter id from the string.

Usage

---@type string
local name;


local val0 = Animator:StringToHash(name)

Extra Detail

Ids are used for optimized setters and getters on parameters.