Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

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

ObjectPreview.Initialize

Initialize(targets: Object[]): void;
void Initialize(Object[] targets);
def Initialize(targets as Object[]) as void

Parameters

targetsThe objects being previwed.

Description

Called when the Preview get's created with the objects being previwed.

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