# Initialize(Object[])

> Called when the Preview gets created with the objects being previewed.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor](/engine/6000.5/script-reference/unityeditor.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
public virtual void Initialize(Object[] targets)
```

### Parameters

**** (\[Object\[]]\(/engine/6000.5/script-reference/unityengine/object)): The objects being previewed.

### Remarks

You can override this function and use this to cache or initialize anything needed by your preview.
