【UE】C++的模板绑定不支持UE的类型结构么? #1476
Unanswered
watsonsong
asked this question in
Q&A
Replies: 2 comments
|
看文档,看例子。你应该是没声明对。 |
0 replies
|
确实是使用问题,之前是因为没有给所有使用到的类型,包括返回值和参数都使用UsingCppType,UsingUStruct或者UsingUClass去定义类型。 |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
我在使用C++的模板绑定的时候,如果在绑定函数的参数,返回值中出现了F结构体,A和U的类型,都会报编译错误:Error C2039 : "value": 不是 "puerts::ScriptTypeName<T,void>" 的成员。
例如std::function来作为一个回调注册给TS,只要回调函数的参数中有一个F结构体的话,就会编译不过。
这个可以通过某种扩展支持么,还是设计上不允许这样?
All reactions