# GetHashForAssetBundle(string, out Hash128)

> Extract the hash for the given AssetBundle.

## Definition

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

## GetHashForAssetBundle(string, Hash128)

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

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The path to the asset bundle.**** (Hash128): The resulting hash of the asset bundle.

### Returns

| Type                                                          | Description                                                                                            |
| ------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------ |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if the method successfully reads the manifest file and extracts the hash value. Otherwise, false. |
