# OnViewAttached()

> Called when the condition's row is attached to a UI panel.

## Definition

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

```csharp
public virtual void OnViewAttached()
```

### Remarks

This can fire multiple times during the view's lifetime — for example when the inspector is rebuilt or the row is reordered. Use this callback for logic that needs to respond to panel-attach events; do not allocate UI here.
