请教有办法Mixin一个对象而不是一个Class么? #1465
Unanswered
watsonsong
asked this question in
Q&A
Replies: 2 comments
-
|
没办法。C++和蓝图就没办法针对对象修改方法。 |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
主要是试用了引擎类继承,感觉大量的变量和函数需要认真加@noblueprint,而且没办法使用默认的构造函数。往往写法模式上会变成引擎类继承只是一个壳,用于定义例如可同步属性和RPC等,具体逻辑代理给另外一个纯JS的类实现功能。引擎类继承在代码重构,换名字的时候替换起来也会比较麻烦。 |
Beta Was this translation helpful? Give feedback.
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.
-
现在Mixin是作用在Class类上的,意味着一定是由TS来Spawn产生的对象才能Mixin。但很多对象可能是由UE的其他机制创建和销毁的,例如ListView中的一个Entry等等。
这些对象初始化的时候,例如蓝图的BeginPlay,我能在对象级别上去Mixin一个JS类的对象进去么?
Beta Was this translation helpful? Give feedback.
All reactions