Search Issue Tracker
Won't Fix
Under Consideration for 2021.3.X, 2022.3.X, 6000.0.X, 6000.1.X
Votes
0
Found in
2021.3.31f1
2022.3.11f1
2023.1.17f1
2023.2.0b14
2023.3.0a11
6000.0.0b11
6000.1.0a7
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
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
- "Customize handled extensions" part in the External Tools settings tab is not aligned with other properties
- Editor Diagnostics foldouts do not open when clicked on the foldout title
- [UI Builder] Visual Elements are not placed at the mouse cursor position when Absolute Position Placement is enabled
- "Width" and "Height" text is misaligned with slider ends in Screen Match Mode Parameters section of Panel Settings Asset
- Editor does not quit when Editor is not in focus and any floating window is opened
Resolution Note:
Thank you for reporting a bug to Unity.
We have reviewed the issue carefully, and in this case, the team is unable to prioritize fixing this bug. There are a number of reasons we make this decision, including the impact and severity of the issue across our user and customer base, and the possibility that future plans may solve the problem in a different way, or that a workaround for the bug may be available.
Today we will be closing this case. Thank you again for taking the time to report this issue, and please let us know if there is anything else that changes the impact or severity of this issue.