# ContentNamespace

> Provides functionality for grouping loaded Archive files into separate namespaces.

## Definition

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

```csharp
public struct ContentNamespace
```

## Remarks

You can use the [ContentNamespace.Default](/engine/6000.6/script-reference/unity/content/contentnamespace/default.md) namespace, or create your own custom namespace with [ContentNamespace.GetOrCreateNamespace](/engine/6000.6/script-reference/unity/content/contentnamespace/getorcreatenamespace.md).

**Note:** A ContentNamespace name must contain only alphanumeric characters and can't be longer than 16 characters.

Additional Resources: [ArchiveFileInterface.MountAsync](/engine/6000.6/script-reference/unity/io/archive/archivefileinterface/mountasync.md).

## Properties

| Property                                                                             | Description                                          |
| ------------------------------------------------------------------------------------ | ---------------------------------------------------- |
| [IsValid](/engine/6000.6/script-reference/unity/content/contentnamespace/isvalid.md) | Indicates whether the ContentNamespace still exists. |

## Static Properties

| Property                                                                             | Description                      |
| ------------------------------------------------------------------------------------ | -------------------------------- |
| [Default](/engine/6000.6/script-reference/unity/content/contentnamespace/default.md) | Default ContentNamespace object. |

## Methods

| Method                                                                               | Description                                     |
| ------------------------------------------------------------------------------------ | ----------------------------------------------- |
| [Delete](/engine/6000.6/script-reference/unity/content/contentnamespace/delete.md)   | Destroys the specified ContentNamespace object. |
| [GetName](/engine/6000.6/script-reference/unity/content/contentnamespace/getname.md) | Retrieves the name of the ContentNamespace.     |

## Static Methods

| Method                                                                                                         | Description                                                    |
| -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------- |
| [GetAll](/engine/6000.6/script-reference/unity/content/contentnamespace/getall.md)                             | Retrieves all existing ContentNamespace objects.               |
| [GetOrCreateNamespace](/engine/6000.6/script-reference/unity/content/contentnamespace/getorcreatenamespace.md) | Retrieves or creates the ContentNamespace if it doesn't exist. |
