ドキュメント

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.