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

When using [AllowNesting] on nested serialized objects, the default lists unfolding is not drawing a proper rect #200

Closed
sbularca opened this issue Jan 1, 2021 · 2 comments

Comments

@sbularca
Copy link

sbularca commented Jan 1, 2021

Let's say I have this structure

SerializedClass1
{
bool show;
[ShowIf("show")]
[AllowNesting]
public SerializedClass2 serializedClass2
}

SerializedClass2
{
public string string1;
public string string2;
public string string3;
}

When serialized class 2 unfolds in the inspector, the rect is not drawn properly and fields overlap with the ones bellow.

Tested on Unity 2020.2.1f1

@dbrizov
Copy link
Owner

dbrizov commented Jan 11, 2021

This indeed is a bug. I don't get why my other test cases with nesting work. This is not that different, it's even simpler. I am looking at it now

@dbrizov
Copy link
Owner

dbrizov commented Jan 11, 2021

Fixed in the v2 branch - 0183cca

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