[UE] Bug: mixin 覆盖的函数中调用super 异常
Closed this issue · 2 comments
operatorkai commented
前置阅读 | Pre-reading
Puer的版本 | Puer Version
1.0.6
UE的版本 | UE Version
5.3
发生在哪个平台 | Platform
win
错误信息 | Error Message
问题重现 | Bug reproduce
两个蓝图类:
BP_Char
--BP_CharBase
BP_CharBase中定义了一个函数 FuncToOverride
ts中mixin了BP_Char 并重写FuncToOverride函数
示例 https://github.com/operatorkai/puerts_unreal_demo_fork
启动游戏,按M键
chexiongsheng commented
这有个super的例子:https://github.com/chexiongsheng/puerts_unreal_demo/blob/master/TypeScript/UsingMixin.ts#L52
你这个还是有点区别的
operatorkai commented
哦哦,需要手动组织prototype链。看花眼了... 没看到基类的load...