Documentation

Unity Engine

Download Unity

Unity Engine

CombineHash(StringHash, StringHash)

Combines two string hashes into one hash.
Read time 1 minuteLast updated 4 hours ago

Definition

public static StringHash CombineHash(StringHash a, StringHash b)

Parameters

The first hash to combine. The order of the arguments matters.

The second hash to combine. The order of the arguments matters.

Returns

Type

Description

StringHashA new hash that depends on both input hashes and on their order.

Remarks

Use this method to build the hash of an animated property from the hash of its transform path and the hash of its property name, as FloatChannel does. The result depends on the order of the arguments:
CombineHash(a, b)
and
CombineHash(b, a)
usually differ.