# GetObjects()

> This function can be used to access all the Objects loaded in the ContentFile.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Loading](/engine/6000.6/script-reference/unity/loading.md)
* **Assembly:** UnityEngine.ContentLoadModule

```csharp
public Object[] GetObjects()
```

### Returns

| Type                                                                | Description                                                                                             |
| ------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- |
| [Object\[\]](/engine/6000.6/script-reference/unityengine/object.md) | All the Objects within the [ContentFile](/engine/6000.6/script-reference/unity/loading/contentfile.md). |

### Remarks

This method will raise an exception if when called [ContentFile.LoadingStatus](/engine/6000.6/script-reference/unity/loading/contentfile/loadingstatus.md) is not [LoadingStatus.Completed](/engine/6000.6/script-reference/unity/loading/loadingstatus/completed.md).
