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

Script language

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

Editor.RenderStaticPreview

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

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.

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