Get Asset/Prefab Preview In Unity 5
Hi,
I have done a LOT of searching for how to get an asset preview (like the one you see in the editor). I have tried so many things (using EditorUtility, AssetPreview, AssetDatabase, etc.) and none work (either return null textures or the default blue square). Is there ANY working way to get the preview of an asset in Unity 5?
Your help is very appreciated! Thank you for any answers or comments in advance.
Answer by Lazar-Gabriel · Feb 24, 2016 at 07:13 AM
Hello,
You can try AssetPreview.GetAssetPreview (Object obj) link: http://docs.unity3d.com/ScriptReference/AssetPreview.GetAssetPreview.html
It will return a 2d Texture.
Have a nice day.
Answer by startassets · Mar 10, 2017 at 01:25 AM
@TheDogePwner I've just finished my own preview asset, maybe it will be useful for you: https://forum.unity3d.com/threads/powerful-preview.460157/
Your answer
Follow this Question
Related Questions
BasicFPS controller "Can not be loaded" 0 Answers
Where can I get material for Unity Game Dev Courses: Swords and Shovels 1 Answer
Probuilder and Progrids 1 Answer
I have buy the worldcomposer, and i get a error in unity 5.3.1 . 1 Answer
How can I import an object with glow effect from blender to unity? 1 Answer