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] Bug: 插件的蓝图类不生成type #1766

Closed
3 tasks done
ZhouXinyu001 opened this issue Jun 19, 2024 · 5 comments
Closed
3 tasks done

[UE] Bug: 插件的蓝图类不生成type #1766

ZhouXinyu001 opened this issue Jun 19, 2024 · 5 comments
Assignees
Labels
bug Something isn't working Unreal

Comments

@ZhouXinyu001
Copy link

前置阅读 | Pre-reading

Puer的版本 | Puer Version

v1.0.6p1

UE的版本 | UE Version

5.2

发生在哪个平台 | Platform

Editor(win)

错误信息 | Error Message

插件的蓝图类不生成type

表现型错误

  1. UE5.2, 在下述提交之前,插件的蓝图类,是生成到ue.d.ts
  2. 在下述提交之后, 插件的蓝图类,就不生成了
    image
    dae96bc

问题重现 | Bug reproduce

插件里任意蓝图必现

@ZhouXinyu001 ZhouXinyu001 added bug Something isn't working Unreal labels Jun 19, 2024
@chexiongsheng
Copy link
Collaborator

首先以前不可能生成到ue.d.ts的啊,生成到ue.d.ts有个Obj->IsNative()条件蓝图肯定得false。
生成到ue.d.ts的条件只是添加了个“或”,相当多了一种情况,这不会减少ue.d.ts的内容,只会持平或者增加。

要么你搞错出问题的commit了,要么你搞错或者描述错问题了。

@chexiongsheng
Copy link
Collaborator

这个commit是把原来生成到ue_bp.d.ts的内容挪到ue.d.ts,你是不是找错文件了?

@ZhouXinyu001
Copy link
Author

ZhouXinyu001 commented Jun 20, 2024

我check了一下,应该是弄反了,看了一下这个commit 是在v1.0.6p1之后

情况如下

  1. 现在使用v1.0.6p1 (未修改任何插件代码)
    插件中的蓝图,不生成typing,ue.bp.ts和ue.d.ts 都没有,相关引用报红
  2. 基于v1.0.6p1 添加该commit中的内容
    插件中的蓝图,生成到ue.d.ts

有一些前提不知道会不会影响到生成

  1. node作为backend
  2. 下载v1.0.6p1的release中的puerts_nodejs.tgz
  3. 开启引擎继承类

@chexiongsheng
Copy link
Collaborator

那你用基于v1.0.6p1 添加该commit中的内容就可以了。

@ZhouXinyu001
Copy link
Author

嗯呢,非常感谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Unreal
Projects
None yet
Development

No branches or pull requests

2 participants