-
Notifications
You must be signed in to change notification settings - Fork 14
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
IMGUI: Regression: GetComponentInChildren(false, typeof(MudCurvePoint), true)] no longer works #102
Comments
Hi, I tried to re-produce it in 2022.2.0f1/2019.4.0f1/2021.3.0f1 with 3.4.12, with/without SaintsEditor, under IMGUI & UI Toolkit but can not re-produce. More information might be needed, e.g.
public class Issue102 : MonoBehaviour
{
[SerializeField, GetComponentInChildren(false, typeof(MudCurvePoint), true)]
private List<Transform> mPoints = new List<Transform>();
} (Example shown IMGUI & UI Toolkit without SaintsEditor so I clicked the plus button here) Unity_SiK6lorFeP.mp4 |
by the way, i see the video waits for + to be pressed. previous behavior didn't require that. |
Hi, unfortunately, with the code above, with Unity 2020.3.48f1, with SaintsField Unity_OHj2YR7EBt.mp4According to the error, it indicate that the data is removed, maybe you can check if a In short at this point I can not re-produce it thus Im unable to do anything with it, until a re-producable env is given... Here is a prefab you can have a try: |
Can you show the code where |
and that init is called only when a new GO is created... big codebase so lemme see if that gets called as some sort of editor init. nope and i commented out the clear, same behavior. so i propose this: send me an a 2 month old version of saintsfield and i'll test it, if it works then at least you can narrow it down to a diff. I'd do it from my git but i excluded the Library/PackageCache, like a dummy |
I reverted to an old version that was sitting in the u6 repo and it works. |
Thanks for the details! I think I get some ideas about what this is about. However, I'm still recovering from a flu so even a temp fix will need a couple of days... sorry for the inconvenience About downgrade, depending on how you install it, there are some easy way, I'll update to the document later:
Then restart the Unity |
No worry, eat loads of chicken soup |
Hi, looks like the serialized property get disposed. This situation very rarely happens in IMGUI. (...and often happens in UI Toolkit...) One possible reason is that the data got removed in There are some way to avoid it. I'll push a release later. It will also change some default behavior of IMGUI which related to the performance impact, and align it partly to the old version's behavior( related to #98 ). Please have a try after releasing |
Hi, This is supposed to be fixed in 3.6.1, please have a try, |
I confirm it does. Well done! |
Understood. Will check it after this weekend :) |
it zeroes out what used to be assigned
The text was updated successfully, but these errors were encountered: