Search Unity

  1. Full schedule for #UniteBerlin is now available! Featuring talks on our roadmap, hands-on labs and much more! Check it out!
    Dismiss Notice
  2. Unity 2018.1 has arrived! Read about it here
    Dismiss Notice
  3. Scriptable Render Pipeline improvements, Texture Mipmap Streaming, and more! Check out what we have in store for you in the 2018.2 Beta.
    Dismiss Notice
  4. ARCore is out of developer preview! Read about it here.
    Dismiss Notice
  5. Magic Leap’s Lumin SDK Technical Preview for Unity lets you get started creating content for Magic Leap One™. Find more information on our blog!
    Dismiss Notice
  6. Want to see the most recent patch releases? Take a peek at the patch release page.
    Dismiss Notice

Custom asset selector

Discussion in 'Extensions & OnGUI' started by Mr-Logan, Apr 8, 2018.

  1. Mr-Logan

    Mr-Logan

    Joined:
    Apr 13, 2006
    Posts:
    454
    I've been googling around for this answer for about a day, but I can't find anything mentioning it.
    Is it possible to override the asset selector window, or extend it with custom code?
     
  2. Hosnkobf

    Hosnkobf

    Joined:
    Aug 23, 2016
    Posts:
    180
    I had the same question some weeks ago... I reverse engineered unity to see how the object selector window is implemented.
    Unfortunately there are classes marked as internal which would have been needed to replace the existing selector window.
    So, the answer is: No, it is not possible.

    What might be possible, though: You can write custom property drawers for certain types which can replace the default ones. They probably can open your own asset selector window...
    However, you would need to do this for every kind of asset you want to support. Also, it will probably clash with other assets which have custom property drawers for the same types.
     
    Mr-Logan likes this.
  3. Mr-Logan

    Mr-Logan

    Joined:
    Apr 13, 2006
    Posts:
    454
    Ok it sounds like it would be too much work.
    Thank you for the answer! :)