---
title: CombineHash(StringHash, StringHash)
product: Unity Editor
version: '7000.0'
latest_version: '7000.0'
status: This page documents version 7000.0. The latest version is 7000.0.
canonical: https://docs.unity.com/en-us/engine/7000.0/script-reference/unity/animations/stringhash/combinehash
latest_url: https://docs.unity.com/en-us/engine/7000.0/script-reference/unity/animations/stringhash/combinehash.md
last_updated: 2026-11-30
generated_at: 2026-11-30T20:52:59.792Z
locale: en-us
---

# CombineHash(StringHash, StringHash)

> Combines two string hashes into one hash.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Animations](/engine/7000.0/script-reference/unity/animations.md)
* **Assembly:** [UnityEngine.AnimationCoreModule](/engine/7000.0/script-reference/modules/unityengine-animationcoremodule.md)

```csharp
public static StringHash CombineHash(StringHash a, StringHash b)
```

### Parameters

**** (\[StringHash]\(/engine/7000.0/script-reference/unity/animations/stringhash)): The first hash to combine. The order of the arguments matters.**** (\[StringHash]\(/engine/7000.0/script-reference/unity/animations/stringhash)): The second hash to combine. The order of the arguments matters.

### Returns

| Type                                                                         | Description                                                      |
| ---------------------------------------------------------------------------- | ---------------------------------------------------------------- |
| [StringHash](/engine/7000.0/script-reference/unity/animations/stringhash.md) | A 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](/engine/7000.0/script-reference/unity/animations/floatchannel.md) does. The result depends on the order of the arguments: `CombineHash(a, b)` and `CombineHash(b, a)` usually differ.
