Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Initialize(Object[])

Called when the Preview gets created with the objects being previewed.
Read time 1 minuteLast updated 5 days ago

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
public virtual void Initialize(Object[] targets)

Parameters

targets

The objects being previewed.

Remarks

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