Skip to content

webgl版本,调用创建实体时,添加脚本(entitylogic)会报错 #14

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

Open
XiaoBojun opened this issue Aug 7, 2023 · 4 comments

Comments

@XiaoBojun
Copy link

添加碰撞体也会报错,是因为脚本裁切的缘故,我取消脚本裁切后,创建球体,可以自动添加碰撞体组件,但这个实体报错,我没有想到解决方案
image
image
image

@GREAT1217
Copy link
Owner

Model_lzy_CQ_XS 在热更dll里吗?

@GREAT1217
Copy link
Owner

哦,没仔细看log,在热更dll里。
Game.Entity.ShowEntity() 前不需要自己加logic脚本,你Add重复了

@XiaoBojun
Copy link
Author

Model_lzy_CQ_XS 在热更dll里吗?

在的,我直接 Model_Lzy_CQ_XS model_Lzy_CQ_XS= gameObject.AddComponent<Model_Lzy_CQ_XS>();没问题,但用框架创建实体会报can not add entity logic.w我在想可能时这个报错了吗·
1691379150863

@GREAT1217
Copy link
Owner

这个是框架中捕获到的异常,可以看看为什么你的代码会在这个条件下被捕获。
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants