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

ts写动画蓝图逻辑怎么样,蓝图里面的property access ts支持嘛,还遇到了一个应该是bug #1624

Open
xiaoliubenliu opened this issue Jan 1, 2024 · 1 comment

Comments

@xiaoliubenliu
Copy link
Contributor

我用ts写了两个动画实例类,一个parent,一个linked,UE中的动画蓝图指定他俩为父类,逻辑写在那俩父类里面,蓝图调用父类函数,能跑,暂时没用到 线程安全更新函数,因为ts里面不会用 property access ,注解里面也没有找到 BlueprintThreadSafe,动画层里面用到了属性访问,游戏是可以正常跑的。
linked动画蓝图用 property access 绑定 getparent 去获取 parent 里面的变量。
image

但是在编辑器里面有点问题,进入linked动画蓝图子类的文件夹有概率崩溃,有的时候保存的时候也会崩溃,崩溃在了
image
image

他说我linked子类蓝图的属性访问绑定的 getparent 的返回值有问题,游戏启动之后没有出现过这个问题。

要是不建议 ts 写动画蓝图的话,我之后就不用了,求大佬解答

@chexiongsheng
Copy link
Collaborator

ue生成的蓝图至少有两种是比较特殊的。UI相关的生成UWidgetBlueprintGeneratedClass,动画的生成UAnimBlueprintGeneratedClass。
而继承ue类只实现了UBlueprintGeneratedClass

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