Search Issue Tracker
By Design
Votes
1
Found in
2017.3.1f1
Issue ID
1037414
Regression
No
Mismatched LayoutGroup errors are thrown when expanding script with serializable class object properties in inspector
To reproduce:
1. Open project
2. Open scene
3. Select Main camera and ensure the Test Object component is expanded
4. Click mouse button in the area under the script
Expected vs Actual: there should not be any Mismatched LayoutGroup errors
Reproduced: 2017.1.3p4, 2017.2.2p4, 2017.3.2f1, 2017.4.3f1, 2018.1.0f2, 2018.2.0b4
Note: if 'TestProperty' class is not serializable, there are no errors thrown
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- “[Worker0] Could not generate preview image“ error when opening macOS native plugin in the Inspector with Architecture to build for set to ARM 64-bit
- [iOS] Application.absoluteURL is empty on Awake/Start when opening via deep link with Splash Screen disabled
- Crash on MemoryManager::Deallocate when rapidly calling Addressables.LoadAssetAsync
- Crash on physx::shdfnd::atomicIncrement when adjusting values on a character controller component after entering Play mode in Prefab edit mode
- [Rendering Debugger] [NewInputSystem] Debug Overlays in Play mode throws InvalidOperationException when using New Input System
Resolution Note (2018.3.X):
PropertyDrawers have a known limitation that they cannot work with the Layout system.
"Note that for performance reasons, EditorGUILayout functions are not usable with PropertyDrawers." from the docs in https://docs.unity3d.com/ScriptReference/PropertyDrawer.html
Users are supposed to calculate Rects manually based on the rect they receive from your overriden OnGUI.