2D Toolkit Forum
2D Toolkit => Support => Topic started by: kenglou.lee on February 09, 2015, 02:44:00 am
-
Is there any way to show the thumnails indicate the sprite in Unity3d Editor Windows/Inspector?
Thanks.
-
The thumbnails are shown in the inspector when you select the sprite, what are you looking for specifically?
-
I'm thinking to do an editor that show's a sprite prefab i selected with image for the sprite prefab with sprite Id.
-
You can see that in the inspector near the sprite selector, not in the preview window though. The preview window requires the mesh to be generated and that can't happen with prefabs.
-
oh i see. so it is not possible to get the image if I'm trying to create a level editor with all the sprite prefab in right?
If that's the case I think i gotcha. Thank you Admin.
-
It IS possible but you'll have to dig through the code base. Look for tk2dSpriteGuiUtility.SpriteSelector