cocos-engine
cocos-engine copied to clipboard
After changing enum, the reference value in the component will not be modified at the same time.
Cocos Creator version
3.8.2
System information
MacOS
Issue description
Sometimes this can lead to problems that are hard to track down.
enum E {
A = 1,
}
change to:
enum E {
A = 100,
}
No error is reported, but the value is already an invalid value.
Now even opening a prefab with invalid values will not prompt.
Relevant error log output
No response
Steps to reproduce
.
Minimal reproduction project
No response
Also related to this proposal: https://github.com/cocos/cocos-engine/issues/15941
Is it an issue about editor?
Reference
yes, @property.
The value saved in the prefab file is 1, but it has actually been changed to 100. There should be an error or automatic reconstruction.