# PrepareForDisplay(EventBase)

> Gets the status of all items by calling their status callback and removes the excess separators.

## Definition

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

```csharp
public void PrepareForDisplay(EventBase e)
```

### Parameters

**** (\[EventBase]\(/engine/6000.6/script-reference/unityengine/uielements/eventbase)): The source event.

### Remarks

Called before the menu is displayed.
