文档

Unity Engine

Unity Engine

StringToHash(string)

Generates a parameter id from a string.
阅读时间1 分钟最后更新于 1 个月前

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.