SerializeReferenceDropdown icon indicating copy to clipboard operation
SerializeReferenceDropdown copied to clipboard

Drawer issues when selecting polymorphism class in Unity 2022.3.0f1

Open Agnate opened this issue 3 years ago • 4 comments

Hi, I was excited to find this library but I'm having an issue. Seems on Unity 2022.3.0f1 I can't get the dropdown option I select to show up. I can see my polymorphism class in the dropdown when I put my array in a ScriptableObject:

image

But after I select it a class, I just get a null entry:

image

I tried recreating the example you had (IShape, Circle, Rectangle, add an array to a MonoBehaviour), but it produced the same results.

However, I noticed something. When I recreated your example in a new project, I could get the item to appear correctly after adding a second item to my array.

Empty list: image

Add a Rectangle: image

Shows as null: image

Click the Add button and it appears: image

Agnate avatar Jul 14 '23 18:07 Agnate

@Agnate Is it windows os editor? Can you test on 2022.3.4? Can you test this on IMGUI inspector? Edit -> Project Settings -> Editor -> Use IMGUI Default Inspector It is only ui elements inspector problem? Unfortunately, I only have macos editor and can't reproduce this bug(

AlexeyTaranov avatar Jul 14 '23 22:07 AlexeyTaranov

Yep changing to IMGUI seems to fix it! Thanks.

Agnate avatar Jul 14 '23 22:07 Agnate

@Agnate Hi. Fixed bug on 0.3.4. version package

AlexeyTaranov avatar Jul 15 '23 06:07 AlexeyTaranov

Nice, works without IMGUI checked now. Thanks for the quick fix!

Agnate avatar Jul 18 '23 14:07 Agnate