Search Issue Tracker
Won't Fix
Votes
0
Found in
2018.4
2018.4.26f1
2021.1
Issue ID
1275738
Regression
No
Asset parameters not updating in Inspector when changed with script and AssetDatabase.ImportAsset() is called unless re-selected
How to reproduce:
1. Open the attached project from "stopTime_1275738.zip"
2. Navigate to Window > My Window
3. Select asset "Test" and observe "Stop Time" in Inspector in Debug mode
4. Click button "Click" in the newly opened window a couple of times
Expected result: stopTime variable updates in real time
Actual result: asset has to be re-selected to see the variable updated
Reproducible with: 2018.4.28f1, 2019.4.13f1, 2020.1.10f1, 2020.2.0b9, 2021.1.0a2
Notes: Tested with calculating the variables, when setting string variables, no reselection needed.
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
- var VisionOSEDRHeadromm has a comma instead of a dot when building with Metal Rendering App Mode and local OS localization is set to German
- IAP Catalog remove product “x” and add product “+” buttons are not consistent with other remove and add buttons in the Editor
- Performance issues in Play Mode when quickly hovering the mouse cursor over Hierarchy GameObjects
- Frame Debugger displays incorrect output when FidelityFX Super Resolution or Spatial-Temporal Upscaler is used with Temporal Anti-aliasing or Subpixel Morphological Anti-aliasing
- The layout system is failing to correctly calculate or apply the height of the Japanese fallback font when the primary English font's metrics are used
Resolution Note (2021.1.X):
The recommendation would be to use SerializedObject/SerializedProperties to do those changes instead of saving the asset directly if you want to have inspectors react to those changes.