Search Unity

  1. Improved Prefab workflow (includes Nested Prefabs!), 2D isometric Tilemap and more! Get the 2018.3 Beta now.
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. Let us know a bit about your interests, and if you'd like to become more directly involved. Take our survey!
    Dismiss Notice
  4. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice
  5. 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:
    394
    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! :)