Legacy Documentation: Version 4.6(go to latest)
Language: English
  • C#
  • JS
  • Boo

Script language

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

Editor.RenderStaticPreview

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

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.