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

[UE] suggestion blueprint.load测试出来的问题 #1692

Closed
weyenrooney opened this issue Mar 31, 2024 · 3 comments
Closed

[UE] suggestion blueprint.load测试出来的问题 #1692

weyenrooney opened this issue Mar 31, 2024 · 3 comments

Comments

@weyenrooney
Copy link

detail | 详细描述

blueprint.load(UE.Game.ToyPack.Blueprints.BP_AI_Unit.BP_AI_Unit_C)
加载蓝图类,在server模式,standalone 模式下都是正常的
如果是client 模式下会报错 argument #0 is not a unload type
at Function.blueprint_load
请问这种情况怎么处理呢

@chexiongsheng
Copy link
Collaborator

BP_AI_Unit_C是个蓝图枚举吗?
blueprint.load是js写的逻辑,不太可能有server模式或者client 模式的区别。
你是在编辑器下同时启动server和client?

@weyenrooney
Copy link
Author

是一个蓝图类,实际测试过程中确实是报错了.我后来的办法是重新打包,删除旧的的linux程序,重新启动就好了

@chexiongsheng
Copy link
Collaborator

是一个蓝图类,实际测试过程中确实是报错了.我后来的办法是重新打包,删除旧的的linux程序,重新启动就好了

我是问是不是蓝图枚举。蓝图枚举才会走那代码。

可能是编译链接得有问题,导致整个虚拟机都不正常了,正常纯js不会有区别。

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