Search Issue Tracker
By Design
Votes
1
Found in
2021.3.32f1
2022.3.12f1
2023.1.19f1
2023.2.0b16
2023.3.0a12
6000.0.0b11
6000.1.0a7
6000.2.0a1
6000.3.0a1
7000.0.0a1
Issue ID
UUM-55606
Regression
No
Unnecessary changes are created in the Scene asset by the Shadow Caster 2D Component which is placed in a Prefab when creating and deleting an empty GameObject and then saving the Scene
How to reproduce:
1. Create a repository with the “ReproProjectGit“ project
2. Open the “ReproProjectGit“ project
3. Open the “SampleScene“
4. Create an empty GameObject
5. Delete that GameObject
6. Save the Scene
7. Observe the changes in the “Assets/Scenes/SampleScene.unity“ asset
8. Commit the “Assets/Scenes/SampleScene.unity“ asset
9. Switch from “SampleScene“ to “New Scene“
10. Switch back to the “SampleScene“
11. Repeat steps 1 through 8
Expected result: No changes occur in the “Assets/Scenes/SampleScene.unity“ asset
Actual result: Different types of changes occur in the “Assets/Scenes/SampleScene.unity“ asset
Reproducible with: 2021.3.32f1, 2022.3.12f1, 2023.1.19f1, 2023.2.0b16, 2023.3.0a12
Reproducible on: macOS 13.5.2 (Intel)
Not reproducible on: No other environment tested
Notes:
- More changes occur in the “Assets/Scenes/SampleScene.unity“ asset when the “ShadowCaster2D” Prefab is nested in another “ShadowCaster2D” Prefab
- If the “ShadowCaster2D” Prefab is the only GameObject in the Scene, the changes seem to eventually work themselves out after several loops through steps 1 through 11
- The problem is not reproducible with a Scene that does not contain the “ShadowCaster2D“ Prefab
- Reproducible with Unity Version Control and GitHub Desktop
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
- “Remove Unused Overrides” available on not loaded Scene and throws “ArgumentException: The scene is not loaded” warning
- Adaptive Probe Volume occlusion edge is calculated incorrectly when viewing probes near geometry edges
- Sampling a texture using an HLSL file throws shader errors and the code does not compile
- "Graphics.CopyTexture called with null source texture" error when Base Camera of an Overlay Camera is removed with DX11 Graphics API and Compatibility Mode enabled
- WebGL sends wrong value with large numbers when SendMessage function is used
Resolution Note:
The change is being caused by the upgrader. This works as intended.