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

没有正确导出 @serializable . #18257

Open
finscn opened this issue Jan 26, 2025 · 2 comments
Open

没有正确导出 @serializable . #18257

finscn opened this issue Jan 26, 2025 · 2 comments
Labels
Bug Needs Triage Needs to be assigned by the team

Comments

@finscn
Copy link
Contributor

finscn commented Jan 26, 2025

Cocos Creator version

3.8.5

System information

all

Issue description

代码中使用

const { ccclass, serializable } = _decorator

时, 提示 serializable 不存在.

Relevant error log output

No response

Steps to reproduce

.

Minimal reproduction project

No response

@finscn finscn added Bug Needs Triage Needs to be assigned by the team labels Jan 26, 2025
@gaojie111119
Copy link

@Property({ serializable: true }) 这样用的吧……很多没有直接导出的

@finscn
Copy link
Contributor Author

finscn commented Feb 5, 2025

@Property({ serializable: true }) 这样用的吧……很多没有直接导出的

我要在项目里覆盖引擎中的某些成员. 父类里如果用的是 @serializable , 我子类用 @property(...) 可以吗?

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

2 participants