- Home /
This question was
closed Apr 04, 2014 at 03:14 PM by
felixpk for the following reason:
The question is answered, right answer was accepted
Autogenerated Thumbnails of GameObjects
Hey there, is there a way to access the thumbnails?
EDIT: Maybe I have to be more specific: The Thumbs should be displayed in this Selectiongrid.
unbenannt-1.png
(225.6 kB)
hilfe123.png
(261.1 kB)
Comment
Best Answer
Answer by felixpk · Dec 04, 2013 at 02:00 PM
This works:
using UnityEditor;
public GameObject tower;
Texture2D icon1 = AssetPreview.GetAssetPreview(tower);
That works perfectly!
But you can not use that when you want to build your game. I know it. It is sad, and it could have been incredible useful. But somehow, Unity wont let you do so.