- Home /
Question by
tertle · Aug 15, 2012 at 03:52 AM ·
gameobjecttextureassetpreview
Asset previews
Does anyone know how to get the asset previews that unity editor shows (also the terrain script has).
This is what I'm looking for: http://i.imgur.com/x2qvM.png
I'm trying to implement previews in a custom editorwindow and can't figured out how to do it.
Thanks in advance.
Comment
Answer by ScroodgeM · Aug 15, 2012 at 07:51 PM
EditorUtility.GetAssetPreview(object);
returns Texture2D
Answer by startassets · Mar 12, 2017 at 07:46 PM
@tertle I've just finished my own preview asset, maybe it will be useful for you: https://forum.unity3d.com/threads/powerful-preview.460157/