Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    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.
     
    FerdowsurAsif and jniac like this.
  2. BinaryCats

    BinaryCats

    Joined:
    Feb 8, 2016
    Posts:
    317
    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:
    317
    edmund_aloetius and phobos2077 like this.
  8. jniac

    jniac

    Joined:
    Nov 16, 2017
    Posts:
    3
    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.