文档

Unity Engine

Unity Engine

StringToHash(string)

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

Definition

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.