Search Issue Tracker
Fixed in 2019.2.X
Votes
0
Found in
2019.1.0b2
2019.2.0a4
2019.2.0b2
2019.3.0a1
Issue ID
1156233
Regression
Yes
PropertyFields added in OnCreateInspector Method disappear after adding other Components to the GameObject
How to reproduce:
1. Open the "SampleScene" Scene in the attached "Unity2019.2-UIElementsInspectorIssue.zip" Project
2. Click on "MyObject" GameObject
3. If "MyComponentA" is corrupt in the inspector - remove it and add "MyComponentA" Component again
4. Add any component with "Add Component" Button
5. Observe the "MyComponentA" Component in the Inspector
Expected Behavior: The structure of "MyComponentA" is not changed
Actual Behavior: "MyComponentA" PropertyFields disappear
Reproducible with: 2019.1.0b2, 2019.1.4f1, 2019.2.0a4, 2019.2.0b3, 2019.3.0a3
Not reproducible with: 2019.1.0b1, 2019.2.0a3
Note: If you deselect the GameObject and select it again - the PropertyFields re-appear which means that it is only a visual issue. Could not test with 2018.4 and 2017.4 because there is no OnCreateInspector method.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Shader Graph skybox material is rendered inccorrectly in builds when "Allow Material Override" or "Cast Shadows" are enabled and the "Deferred" Rendering Path is used
- Object motion is affected by incorrectly added rotation motion when importing animations
- Base class's Context Menu method is called when calling it in the Editor from the child class and the child class overrides this method
- Editor crashes with prompt "The file 'MemoryStream' is corrupted! Remove it and launch unity again! [Position out of bounds!]" when adding a serialized field to a precompiled DLL
- Android Player freezes waiting for a texture upload when AssetBundle.LoadFromFile is used
Add comment