기술 자료

Unity Engine

Unity Engine

GetHashCode()

Converts this ShaderTagId to a hash code.
읽는 시간 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.