# GetHashForAssetBundle(string, out Hash128)

> Extract the hash for the given AssetBundle.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor](/engine/6000.3/script-reference/unityeditor.md)
* **Assembly:** UnityEditor

## GetHashForAssetBundle(string, Hash128)

```csharp
public static bool GetHashForAssetBundle(string targetPath, out Hash128 hash)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): **** (\[Hash128]\(/engine/6000.3/script-reference/unityengine/hash128)):&#x20;

### Returns

| Type                                                          | Description |
| ------------------------------------------------------------- | ----------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) |             |
