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. The 2023.1 beta is now available for testing. To find out what's new, have a look at our 2023.1 feature highlights.
    Dismiss Notice

Feedback Editing polymorphic types in the inspector

Discussion in '2022.2 Beta' started by print_helloworld, May 9, 2022.

  1. print_helloworld

    print_helloworld

    Joined:
    Nov 14, 2016
    Posts:
    227
    I'm using this package to be able to pick and choose the type, it worked without issues before this major version, and I can't find any issue ticket for this in the tracker so I'm wondering if something internal changed around the managed references with this or if anyone is having this. The issue is:

    Editing the value in the inspector will defocus the text field and will require to focus on a text field again. The workaround is to put the inspector into debug mode and then put it back to pretty mode.

    It's not a complete deal breaker, polymorphic data still works its just editing and interacting is very frustrating. Not sure if i should bother filing a ticket since the bug only exists because the package shows them in the first place. And from looking at the source package code, I wish there were more low level util functions exposed to us to reduce the amount of silly boilerplate that we have to do around reflection for polymorphic inspectors to make our tools more safe (theyre an amazing feature, 1st party support for the ui for these would be amazing to have)
     
    Hikiko66 likes this.