LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

This version of Unity is unsupported.

Animator.StringToHash

Switch to Manual
public static int StringToHash(string name);

Parameters

nameThe string to convert to Id.

Description

Generates an parameter id from a string.

Ids are used for optimized setters and getters on parameters.