mackysoft / Unity-SerializeReferenceExtensions

Provide popup to specify the type of the field serialized by the [SerializeReference] attribute in the inspector.
https://qiita.com/makihiro_dev/items/26daeb3e5f176934bf0a
MIT License
770 stars 59 forks source link

[BUG] Unfold and DragNDrop buttons overlap when `[SubclassSelector]` used with array type #63

Closed Antoshidza closed 2 months ago

Antoshidza commented 2 months ago

What happened?

For code like this:

[SerializeReference, SubclassSelector] private IConfig[] _configs;

there is overlapping of unfold and dragNdrop buttons in inspector (image down below) image

Unfold button need a little offset

Package Version

1.4.0

Unity Version

2022.3.16

mackysoft commented 2 months ago

@Antoshidza Sorry. I probably cannot support this.

There is a layout issue between Unity patch versions, and I cannot use the define directive to handle the difference. I tried with 2022.3.15f1 and 2022.3.19f1, but could not confirm the this issue.

2022.3.19f1

image