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] Question:行为树蓝图里无法找到puerts生成的BTTask_BlueprintBase蓝图。 #1828

Open
isaf opened this issue Sep 6, 2024 · 3 comments

Comments

@isaf
Copy link

isaf commented Sep 6, 2024

脚本代码:
image
生成的蓝图:
image

行为树蓝图中无法找到这个Task:
image

请问一下是我的Extends写法有问题吗?还是puerts不支持行为树相关的蓝图?

@chexiongsheng
Copy link
Collaborator

很多时候ue不同种类的蓝图要求继承不同的基类。
我只支持UBlueprintGeneratedClass。
如果编辑器识别不出来,很可能是因为基类不同

@isaf
Copy link
Author

isaf commented Sep 6, 2024

puerts生成BTTask蓝图是没问题的,看了下,Puerts生成的和手工生成的区别主要是BlueprintClassType和BlueprintGeneratedClassType不同,puerts生成的是TypeScriptBlueprint和TypeScriptGeneratedClass。
我看行为树编辑器在筛选蓝图的时候是用UBlueprint来筛的:
image
但奇怪的是筛出的结果里面没有puerts生成的蓝图。

@morirain
Copy link
Contributor

别的我也不清楚,但是提醒你一下,你给的图拖动的是ROOT节点,ROOT节点本身就不能找到任何BTTask。
还有你下面贴的源码,那是StateTree的代码,不是一套系统。
相关代码是在void UEdGraphSchema_BehaviorTree::GetGraphContextActions(FGraphContextMenuBuilder& ContextMenuBuilder) const

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

3 participants