# GetOrCreateNamespace(string)

> Retrieves or creates the ContentNamespace if it doesn't exist.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Content](/engine/6000.7/script-reference/unity/content.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public static ContentNamespace GetOrCreateNamespace(string name)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Name of the ContentNamespace. It must contain only alphanumeric characters and have a maximum length of 16 characters.

### Returns

| Type                                                                                  | Description                                    |
| ------------------------------------------------------------------------------------- | ---------------------------------------------- |
| [ContentNamespace](/engine/6000.7/script-reference/unity/content/contentnamespace.md) | Returns the specified ContentNamespace object. |
