Search Issue Tracker
Active
Under Consideration for 2021.3.X, 2022.3.X, 6000.0.X, 6000.1.X
Votes
0
Found in
2021.3.43f1
2022.3.45f1
6000.0.18f1
6000.1.0a7
Issue ID
UUM-79880
Regression
No
Script array values are not updated when initializing the array using const int
How to reproduce:
1. Open the attached “ArrayTest.zip” project
2. Open the “SampleScene”
3. Select the “ScriptObj” GameObject
4. Change the Inspector mode from “Normal” to “Debug”
5. Under the “Array Test” script component observe the “Array” value
6. Open the “Array Test” script for editing
7. Change the value of “arrSize” to any other number
8. Save and compile the script
9. Observe the result in the Inspector window
Expected result: The value of “Array” is updated to the newly assigned value
Actual result: The value of “Array” remains the same
Reproducible in 2021.3.43f1, 2022.3.45f1, 6000.0.18f1
Reproducible on: Windows 10, Windows 11
Not reproducible on: No other environments tested
Note:
- Reloading the scene or changing the name of the array causes the value to be updated
- The value is also updated upon entering Play Mode
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
Add comment