# GetCustomAttribute(string)

> Gets a custom attribute by attribute name.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Android.Gradle.Manifest](/engine/6000.7/script-reference/unity/android/gradle/manifest.md)
* **Assembly:** Unity.Android.Gradle

```csharp
public BaseAttribute GetCustomAttribute(string name)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Attribute name.

### Returns

| Type                                                                                            | Description                                                                        |
| ----------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- |
| [BaseAttribute](/engine/6000.7/script-reference/unity/android/gradle/manifest/baseattribute.md) | The custom attribute with the given name when one exists. Otherwise, returns null. |
