Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After changing enum, the reference value in the component will not be modified at the same time. #16922

Open
smallmain opened this issue Apr 23, 2024 · 4 comments
Assignees
Labels
Bug Needs Triage Needs to be assigned by the team

Comments

@smallmain
Copy link

smallmain commented Apr 23, 2024

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

@smallmain smallmain added Bug Needs Triage Needs to be assigned by the team labels Apr 23, 2024
@smallmain
Copy link
Author

Also related to this proposal: #15941

@minggo
Copy link
Contributor

minggo commented Apr 23, 2024

Is it an issue about editor?

@smallmain
Copy link
Author

Reference

yes, @Property.

@smallmain
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Needs Triage Needs to be assigned by the team
Projects
None yet
Development

No branches or pull requests

3 participants