LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

This version of Unity is unsupported.

ObjectPreview.Initialize

public void Initialize(Object[] targets);

Parameters

targetsThe objects being previewed.

Description

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

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