Search Unity

Modifying asset preview in Project

Discussion in 'Extensions & OnGUI' 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:
    159
    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:
    93
    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:
    136
    BinaryCats likes this.
  6. StylishCoding

    StylishCoding

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

    BinaryCats

    Joined:
    Feb 8, 2016
    Posts:
    159
  8. jniac

    jniac

    Joined:
    Nov 16, 2017
    Posts:
    1
    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 ?