Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2021.1.1f1 inspector issue #7

Closed
ChiefBreakeverything opened this issue May 6, 2021 · 3 comments
Closed

2021.1.1f1 inspector issue #7

ChiefBreakeverything opened this issue May 6, 2021 · 3 comments

Comments

@ChiefBreakeverything
Copy link

ChiefBreakeverything commented May 6, 2021

Hey there,

I just noticed that the inspector layout seems to have broken in Unity 2021.1.1f1 (it worked great in 2020.x.x for me).

If you have an array using [SerializeReferenceButton], unfolding any element in the array will prevent the following elements from being drawn like so:

image

Any idea whats happening here?

@TextusGames
Copy link
Owner

TextusGames commented May 7, 2021

image
EditorGUI.BeginProperty(..) makes this happen.
If you comment out this call. It should be drawn normally.

It is kind of regression from unity side.
I filed a bug report (1334600)

@TextusGames
Copy link
Owner

I have got email that issue 1334600 is fixed in Unity 2021.2.0a20

@ghost
Copy link

ghost commented Dec 9, 2021

I still got a similar issue with 2021.2.4f1:
When I click in hierarchy on a gameobject with a SerializeReferenceButtonAttribute,
in the property grid, I can see all elements for a single frame, then elements after the first one disappear.
If I collapse the first element, the following elements come back (and it's still there when I expand it again).

Commenting those two lines fixes it for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants