# OnViewBuilt()

> Called once, after the condition's built-in UI is fully constructed.

## Definition

* **Type:** Method
* **Namespace:** [Unity.GraphToolkit.Editor](/engine/6000.7/script-reference/unity/graphtoolkit/editor.md)
* **Assembly:** UnityEditor

```csharp
public virtual void OnViewBuilt()
```

### Remarks

This is the recommended entry point for allocating custom UI and adding it to [IConditionView.Root](/engine/6000.7/script-reference/unity/graphtoolkit/editor/iconditionview/root.md). It fires exactly once per view instance, so any element allocated here can be safely cached in a field.
