# CreateViewController()

> Creates the view controller for this view. Override this method in inheritors to change the controller type.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.UIElements](/engine/6000.7/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule

```csharp
protected abstract CollectionViewController CreateViewController()
```

### Returns

| Type                                                                                                           | Description          |
| -------------------------------------------------------------------------------------------------------------- | -------------------- |
| [CollectionViewController](/engine/6000.7/script-reference/unityengine/uielements/collectionviewcontroller.md) | The view controller. |
