Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


StringToHash(string)

Generates a parameter id from a string.
Read time 1 minuteLast updated 6 days ago

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.AnimationModule
public static int StringToHash(string name)

Parameters

name

The string to convert to Id.

Returns

Type

Description

int

Remarks

Ids are used for optimized setters and getters on parameters.