Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetHashCode()

Converts this ShaderTagId to a hash code.
Read time 1 minuteLast updated 7 days ago

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.