Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Join us on Dec 8, 2022, between 7 am & 7 pm EST, in the DOTS Dev Blitz Day 2022 - Q&A forum, Discord, and Unity3D Subreddit to learn more about DOTS directly from the Unity Developers.
    Dismiss Notice
  3. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    Dismiss Notice

Modifying asset preview in Project

Discussion in 'Immediate Mode GUI (IMGUI)' started by TeemuMV, Jan 24, 2018.

  1. TeemuMV

    TeemuMV

    Joined:
    Nov 10, 2017
    Posts:
    19
    Hey,

    I'm building an editor and would like to leverage the Project for model management instead of having to reinvent the wheel and display them manually in the editor's Inspector.

    Is it possible to:

    1) Modify prefab/model/mesh previews' transforms (or camera) in the Project view?
    2) Use a custom image/texture as a preview?

    The default rotation is wonky at best for my use-case. I'd like to be able to see the models straight on instead.

    In the simple example below, the rotation of the preview hides information which would be visible if it were straight on.
    In more complex cases, the models are illegible due to the rotation.



    To elaborate, I'm not talking about the asset previews (right in the above pic) that appear in Inspector when you select an asset, which I know can be modified, but specifically the preview thumbnails in the Project view.
     
    jniac likes this.
  2. BinaryCats

    BinaryCats

    Joined:
    Feb 8, 2016
    Posts:
    313
    I too have searched how to do this in the past, I believe it isn't possible. But I hope it is!
     
  3. PsyKaw

    PsyKaw

    Joined:
    Aug 16, 2012
    Posts:
    102
    BinaryCats likes this.
  4. TeemuMV

    TeemuMV

    Joined:
    Nov 10, 2017
    Posts:
    19
    Brilliant, that seems to do exactly what I need. Will look into it.
     
  5. StylishCoding

    StylishCoding

    Joined:
    Apr 21, 2018
    Posts:
    140
    BinaryCats likes this.
  6. StylishCoding

    StylishCoding

    Joined:
    Apr 21, 2018
    Posts:
    140
  7. BinaryCats

    BinaryCats

    Joined:
    Feb 8, 2016
    Posts:
    313
    phobos2077 likes this.
  8. jniac

    jniac

    Joined:
    Nov 16, 2017
    Posts:
    2
    Did you find any solution ? I can't understand why is Unity using a such non-logical non-common camera position!! Your image is explicit: The x-axis is pointed to the left!!! But why???

    [Edit] Did EditorApplication.projectWindowItemOnGUI helps you ?
     
    phobos2077 likes this.