Search Issue Tracker
By Design
Votes
0
Found in
Issue ID
1283613
Regression
No
[UX] GameObject has empty layer if the layer it had previously was erased
To reproduce:
1. Open any project
2. Create a new layer
3. Assign the layer to any game object
4. Go to Tags & Layers and erase the newly created layer
5. Select your game object and look at the layer
Expected result: layer mask gets back to Default (or any other default value)
Actual result: layer name is empty, no layer is marked as active in the layer dropdown
Reproduced on: 2019.4.12f1, 2020.1.9f1, 2020.2.0b7
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
- Standalone Player crashes with "TDerived GetOrLoad<TDerived>() where TDerived : T" when IL2CPP Code generation is set to "Faster (smaller) Builds"
- IndexOutOfRangeException and InvalidOperationException when logging XML string
- Script missing in "Assets/Settings/Mobile_Renderer/GlobalVolumeFeature" of "com.unity.template.urp-blank" template
- “Font Asset Creator - Error Code [Invalid_File_Structure]…“ error is logged when generating Font Assets from fonts with meta files from previous Editor versions
- Input.mousePosition returns (NaN, NaN, 0.00) when Scene view is opened
Resolution Note:
Current behaviour doesn't break project in cases where layer gets removed by accident or unintentionally (either locally, or when pulling layer removal from vcs) - if layer is removed adding it back to layer list is all that's needed. With proposed behaviour it would require reassigning layer back to all objects that previously had it.