Search Unity

  1. Calling all beginners! Join the FPS Beginners Mods Challenge until December 13.
    Dismiss Notice
  2. It's Cyber Week at the Asset Store!
    Dismiss Notice

Preview Customizer + Icon Generator

Discussion in 'Assets and Asset Store' started by StylishCoding, Apr 28, 2018.

  1. StylishCoding

    StylishCoding

    Joined:
    Apr 21, 2018
    Posts:
    140
    Preview Customizer allows you to change the view angle of the GameObject preview or assign a custom image to any asset as thumbnail, and more features.

    Asset Store

    large.png

    Feature:
    • Change View Angle
    • Change Light Direction
    • Change Light Intensity
    • Zoom View Distance
    • Move GameObject Position
    • Preview Light only Prefab
    • Preview Particle only Prefab
    • Add Custom Room as Background
    • Move Room Position
    • Change Room Size
    • Rotate Room
    • Generate Icon
    Compatible with 5.6, 2017 and 2018

    a1.jpg a3.jpg a6.jpg
     
    Last edited: Jun 26, 2018
  2. StylishCoding

    StylishCoding

    Joined:
    Apr 21, 2018
    Posts:
    140
  3. StylishCoding

    StylishCoding

    Joined:
    Apr 21, 2018
    Posts:
    140
    Adding new features to customize thumbnail include:
    • Render preview of light only prefab.
    • Render preview of particle system only prefab.
    • Add a room mesh for visible of light only prefab.

    1.jpg

    2.jpg
     
  4. StylishCoding

    StylishCoding

    Joined:
    Apr 21, 2018
    Posts:
    140
    Hello, I am giving 3 Stylish Project View voucher to the person who purchased Customize Thumbnail and leave a review on Asset Store. If you interested in it, please reply in this thread.
    1. First 3 reply in this thread will get the voucher.
    2. If your name in Asset Store is different, please leave your forum name in review.
    3. Please leave a useful review, high rating is not required.
    PS. Same offer on Stylish Project View too.
     
  5. wolfen231

    wolfen231

    Joined:
    Apr 22, 2014
    Posts:
    402
    Is this compatible with 2017 / 2018, etc?
     
  6. StylishCoding

    StylishCoding

    Joined:
    Apr 21, 2018
    Posts:
    140
    Current version is tested in 5.6, 2017.1 and 2018.1
    There is error in 2017.4 and .Net 4.6, I have fixed it.
    Fix will included in next update with new features.
     
  7. wolfen231

    wolfen231

    Joined:
    Apr 22, 2014
    Posts:
    402
    Great, thanks for the notice. For some reason the store page only says just been uploaded using unity 5.6
     
  8. StylishCoding

    StylishCoding

    Joined:
    Apr 21, 2018
    Posts:
    140
    Price restore is submitted to asset store, so sales will end in 1-2 days.
     
  9. StylishCoding

    StylishCoding

    Joined:
    Apr 21, 2018
    Posts:
    140
    New version is submitted, new feature include:
    • Change View Angle
    • Change Light Direction
    • Change Light Intensity
    • Zoom View Distance
    • Preview Light only Prefab
    • Preview Particle only Prefab
    • Add Custom Room as Background
    • Change Room Size
    • Rotate Room
    a1.jpg

    a2.jpg a3.jpg a5.jpg a6.jpg
     
  10. wolfen231

    wolfen231

    Joined:
    Apr 22, 2014
    Posts:
    402
    Can't seem to get the room to show up in the thumbnail. Also the documentation is a little empty. Granted you have most of the controls on the window.

    Feature request: Dockable window. Currently the window will disappear entirely if you click some where outside of the window. This is a problem when you go to find something for the "gameobject" option you have there.

    Speaking of gameobject option... what is that for?
     
  11. StylishCoding

    StylishCoding

    Joined:
    Apr 21, 2018
    Posts:
    140
    Sorry, forget to update the document. The gameobject option is for custom room prefab, you need select it to have room show in thumbnail. This plug-in included one simple room prefab for you.

    I will change the window to normal window on next update. Thank you for your comment.
     
  12. wolfen231

    wolfen231

    Joined:
    Apr 22, 2014
    Posts:
    402
    Yeah, I have the room button checked but I don't see anything. Tried adjusting its scale too. This is on 2017.3
     
  13. StylishCoding

    StylishCoding

    Joined:
    Apr 21, 2018
    Posts:
    140
    Can you make a screenshot of the customize window, and also the prefab in scene view and inspector. Thanks.
     
  14. StylishCoding

    StylishCoding

    Joined:
    Apr 21, 2018
    Posts:
    140
    Do you enabled "With Light Only" option? If you enabled it, room only add to prefab with light component.

    I updated and attached the new document.
     

    Attached Files:

    wolfen231 likes this.
  15. wolfen231

    wolfen231

    Joined:
    Apr 22, 2014
    Posts:
    402
    Sorry for the late reply! I was very busy yesterday.

    1. Yes, the problem was the light option. Unchecked that and it showed up. Very cool =)
    2. Another question. When you save these changes... will it be stored inside the prefab? For example if i want to share just the prefab, and only the prefab with a friend will they see the new thumbnail and not be required to have your plugin?

    Thanks!
     
  16. StylishCoding

    StylishCoding

    Joined:
    Apr 21, 2018
    Posts:
    140
    The preview is not stored in prefab, Unity is generating it when it needed to. This plugin is hacked into Unity and return the modified preview.
     
    wolfen231 likes this.
  17. StylishCoding

    StylishCoding

    Joined:
    Apr 21, 2018
    Posts:
    140
    Updated new version:
    • Change the customize window to normal window
    • Update document
     
    wolfen231 likes this.
  18. ikemen_blueD

    ikemen_blueD

    Joined:
    Jan 19, 2013
    Posts:
    312
    Very useful, I use it to screenshot all Models, Prefabs of a Unity package. 2 things I want so far: middle-mouse drag the Object around within the Thumbnail box, if many Prefabs within the Window, there have no Scroll-bar. Thanks.

    Btw, are 3 Stylish Project View vouchers still available?
     
  19. wolfen231

    wolfen231

    Joined:
    Apr 22, 2014
    Posts:
    402
    Yeah... wondering as well. As I think I was the first and only to leave a review hehe.
     
  20. StylishCoding

    StylishCoding

    Joined:
    Apr 21, 2018
    Posts:
    140
    Three vouchers still available, I will give you the voucher once you reply that post.
     
  21. wolfen231

    wolfen231

    Joined:
    Apr 22, 2014
    Posts:
    402
    Does this count as the reply? hehe
     
  22. StylishCoding

    StylishCoding

    Joined:
    Apr 21, 2018
    Posts:
    140
    PM the voucher code to you, enjoy!
     
    wolfen231 likes this.
  23. wolfen231

    wolfen231

    Joined:
    Apr 22, 2014
    Posts:
    402
    Cheers!

    Can you check out my post on the prefab pick n placer thread as well? Having some problems with it.
     
  24. StylishCoding

    StylishCoding

    Joined:
    Apr 21, 2018
    Posts:
    140
    I will consider add this function. When you select many prefab to customize, you can use the arrow button to change the page.

    Btw, I find a bug when display with page index offset, I will fix it soon.

    page.jpg
     
  25. StylishCoding

    StylishCoding

    Joined:
    Apr 21, 2018
    Posts:
    140
    Replied your question in Prefab Pick & Place, hope it is the problem you have.
     
  26. ikemen_blueD

    ikemen_blueD

    Joined:
    Jan 19, 2013
    Posts:
    312
    :)
     
  27. StylishCoding

    StylishCoding

    Joined:
    Apr 21, 2018
    Posts:
    140
    PM the voucher code to you, enjoy!
     
    ikemen_blueD likes this.
  28. StylishCoding

    StylishCoding

    Joined:
    Apr 21, 2018
    Posts:
    140
    Only one voucher leave now!
     
  29. StylishCoding

    StylishCoding

    Joined:
    Apr 21, 2018
    Posts:
    140
    Updated new version to Asset Store:
    • Move GameObject and room.
    • Fix display incorrect prefab after changed page.
     
    ikemen_blueD and wolfen231 like this.
  30. ikemen_blueD

    ikemen_blueD

    Joined:
    Jan 19, 2013
    Posts:
    312

    @StylishCoding I know this system for Prefab mainly, but, any chance to customize thumbnail display for Mesh as well, that also display its polygon count like this image above. Thanks for adding the moving object feature.

    EDIT
    I figure out a way to display Mesh as prefab, by using Wireframe shader. Could you support to display polygon count of a prefab? That would help me very much to organize my meshes resources files.
     
    Last edited: Jun 7, 2018
  31. StylishCoding

    StylishCoding

    Joined:
    Apr 21, 2018
    Posts:
    140
    I am thinking a method to add user custom text to the preview.
     
  32. StylishCoding

    StylishCoding

    Joined:
    Apr 21, 2018
    Posts:
    140
    Here is a test result, it used old textmesh so the quality is so low. I have tried to use UI canvas at first, but I find unity do not draw canvas when using manual render. Use Text Mesh Pro can get high quality text, but it is not included in project by default, you need to do some modify to change textmesh to Text Mesh Pro.

    upload_2018-6-8_18-21-19.png
     
    ikemen_blueD likes this.
  33. StylishCoding

    StylishCoding

    Joined:
    Apr 21, 2018
    Posts:
    140
    Sorry for the long delay. Finally found some solution to draw text in texture.

    First, I found a way to increase the quality of the old text mesh, use large font size and small character size. Dunno why unity leave the default setting with ugly result.

    upload_2018-6-25_16-40-56.png

    Here I use 2 test mesh to draw text with shadow:

    upload_2018-6-25_16-44-15.png

    Second, use Text Mesh Pro. I found that I need to call ForceMeshUpdate on TMP object to render correctly when using manual render. With Text Mesh Pro, you can add text effect easily:

    upload_2018-6-25_16-55-17.png

    I also added a new function to generate icon with frame, mask and background:

    upload_2018-6-25_17-3-16.png
     
    ikemen_blueD likes this.
  34. DrOcto

    DrOcto

    Joined:
    Sep 15, 2017
    Posts:
    79
    Hi, is there still some voucher left for me also to play with it? Looks nice btw. It reminds me of plugin for Blender.
     
  35. StylishCoding

    StylishCoding

    Joined:
    Apr 21, 2018
    Posts:
    140
    There is last voucher for people leave a review.
     
  36. StylishCoding

    StylishCoding

    Joined:
    Apr 21, 2018
    Posts:
    140
    Updated to 1.2:
    • Add custom prefab with custom script to show custom information.
    • Generate Icon with frame, mask and background.
    The asset name is changed, if you are updating from old version, there will be 2 folder after update. Move all file from old folder to new folder is ok.
     
  37. thatscraigz

    thatscraigz

    Joined:
    Mar 27, 2015
    Posts:
    77
    Hi @StylishCoding :)

    This plugin looks super cool! I had a quick question about how it's used though. Can this primarily be used to generate a lot of icons for a game? (sort of like from an inventory). That then get generated and stored in a folder?

    From the description that's what it sounds like.. but I wanted to confirm :)

    -craigz
     
  38. StylishCoding

    StylishCoding

    Joined:
    Apr 21, 2018
    Posts:
    140
    Yes, this function added in latest version.
     
  39. thatscraigz

    thatscraigz

    Joined:
    Mar 27, 2015
    Posts:
    77
  40. thatscraigz

    thatscraigz

    Joined:
    Mar 27, 2015
    Posts:
    77
    Hi @StylishCoding! :D I just picked up the plugin a few days ago and have been having a lot of fun :) I have been a having an issue though and wanted to see if you had any direction?

    Error:
    • occasionally I'll get an error saying that it was unable to generate the icon because it didn't have permission
    Recommendation:
    • remember last generated folder path OR be able to set a dedicated one?
    best,

    craigz
     
  41. StylishCoding

    StylishCoding

    Joined:
    Apr 21, 2018
    Posts:
    140
    What error is shown in the console?

    I will add remember last folder in future version.
     
  42. thatscraigz

    thatscraigz

    Joined:
    Mar 27, 2015
    Posts:
    77
    Sorry for the late reply :)

    For whatever reason I haven't gotten the error again, if I do I will copy the error for you.

    Awesome to hear you will add it in the new version, that would be super helpful!

    Thank you :D
     
  43. NinjaVR

    NinjaVR

    Joined:
    May 20, 2017
    Posts:
    2
    I wrote a review.
     
  44. StylishCoding

    StylishCoding

    Joined:
    Apr 21, 2018
    Posts:
    140
    I have fixed not working on v2017.4.10 and v2018.2 and submitted to asset store.
    Please wait asset store update if you are you using v2017.4.10 or v2018.2.
     
    NinjaVR likes this.
  45. thatscraigz

    thatscraigz

    Joined:
    Mar 27, 2015
    Posts:
    77
    Hi again @StylishCoding :)

    I have an urgent request I was hoping you could put into the plugin? Could you add a checkbox for creating the object with a transparent background? I'm using these as button overlays and only just realized that it creates them against a solid color by default :(

    Also, here is the error I occasionally get when generating an icon.

    Code (CSharp):
    1. UnauthorizedAccessException: Access to the path "C:\env_barricade_wood_002.png" is denied.
    2. System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/FileStream.cs:320)
    3. System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize)
    4. (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int)
    5. System.IO.File.Create (System.String path, Int32 bufferSize) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/File.cs:135)
    6. System.IO.File.Create (System.String path) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/File.cs:130)
    7. System.IO.File.WriteAllBytes (System.String path, System.Byte[] bytes) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/File.cs:594)
    8. CustomizeThumbnail.CustomizeWindow.GenerateIcon ()
    9. CustomizeThumbnail.CustomizeWindow.FooterGUI ()
    10. CustomizeThumbnail.CustomizeWindow.OnGUI ()
    11. System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222)
    12. Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
    13. System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:232)
    14. System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MethodBase.cs:115)
    15. UnityEditor.HostView.Invoke (System.String methodName, System.Object obj) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:295)
    16. UnityEditor.HostView.Invoke (System.String methodName) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:288)
    17. UnityEditor.HostView.InvokeOnGUI (Rect onGUIPosition) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:255)
    I hope you are doing well :)

    -craigz
     
  46. StylishCoding

    StylishCoding

    Joined:
    Apr 21, 2018
    Posts:
    140
    I will try to add transparent background.
     
  47. thatscraigz

    thatscraigz

    Joined:
    Mar 27, 2015
    Posts:
    77
    Awesome!

    Thank you so much, I've really been loving your plugin, it saves SO much time! :D
     
  48. StylishCoding

    StylishCoding

    Joined:
    Apr 21, 2018
    Posts:
    140
    Submitted new version to asset store.
    • Fix icon background not working.
    • Transparent background if icon background is not enabled.

    Alpha channel of background image is also used as transparent now.

    Hellephant.png
     
  49. StylishCoding

    StylishCoding

    Joined:
    Apr 21, 2018
    Posts:
    140
    Code (CSharp):
    1. UnauthorizedAccessException: Access to the path "C:\env_barricade_wood_002.png" is denied.
    2. System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/FileStream.cs:320)
    It seems the file is locked by system. As the error come from System.IO.FileStream, I think it is not related to the plug-in.
     
  50. StylishCoding

    StylishCoding

    Joined:
    Apr 21, 2018
    Posts:
    140
    The new version is ready in asset store.