文档

Unity Engine

Unity Engine

GetHashCode()

Converts this ShaderTagId to a hash code.
阅读时间1 分钟最后更新于 1 个月前

Definition

public override int GetHashCode()

Returns

Type

Description

intThe hash code of this
ShaderTagId
.

Remarks

Allows this struct to be used efficiently in data structures which rely on hashing (
System.Collections.Generic.HashSet
, for example). The hash is based on the string this identifier refers to.