Legacy Documentation: Version 5.1
LanguageEnglish
  • C#
  • JS

Script language

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

Editor.RenderStaticPreview

Switch to Manual
public function RenderStaticPreview(assetPath: string, subAssets: Object[], width: int, height: int): Texture2D;

Parameters

Description

Override this method if you want to render a static preview that shows.

If null is returned the builtin icon for the class type is used.