Search Issue Tracker
Active
Under Consideration for 2021.3.X, 2022.3.X, 6000.0.X
Votes
0
Found in
2021.3.31f1
2022.3.11f1
2023.1.17f1
2023.2.0b14
2023.3.0a11
6000.0.0b11
7000.0.0a1
Issue ID
UUM-53886
Regression
No
Private array loses references when the GameObject is marked as DontDestroyOnLoad
Reproduction steps:
1. Open the "IN-50710.zip" project
2. Open the "Assets/Startup" Scene
3. Attach a debugger to the project
4. Set breakpoints in lines 38 and 66 of the "Assets/Scripts/Controllers/CameraController.cs" Script
5. Enter Play mode
6. Resume the program until the breakpoint in line 38 is hit
7. Observe the "players" field of the "CameraController" Script
8. Resume the program and observe the "players" field again
Expected results: The "players" field has the "Tom" GameObject
Actual results: The "players" field has a "null" value
Reproducible with: 2021.3.31f1, 2022.3.11f1, 2023.1.17f1, 2023.2.0b14, 2023.3.0a11
Reproducible on: macOS 14.0 (M1)
Not reproducible on: No other environment tested
Note: Reproducible in Standalone Player
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Crash on when D3D12RenderPass::SetupDeviceResources when opening FBX animation preview
- Serialization errors are thrown when "com.unity.render-pipelines.core" is added as a custom package and Graphics window is opened
- Character Joints unexpectedly rotate when a ragdoll is created using the Ragdoll Wizard
- Crash on GfxDeviceD3D11Base::DrawBuffersBatchMode when rendering the Scene view
- The shared EditorBuildSettings.asset file of symlinked projects is not updated when changing the order of the Scenes in Build Settings in one of the projects
Add comment