Legacy Documentation: Version 2018.1 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

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

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.

Did you find this page useful? Please give it a rating: