ShaderTagId.GetHashCode

Declaration

public int GetHashCode();

Returns

int The hash code of this ShaderTagId.

Description

Converts this ShaderTagId to a hash code.

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.


Did you find this page useful? Please give it a rating: