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: 生成ue.bp.d.ts时,无法处理变量名中包含单引号的情况 #1984

Open
3 tasks done
JamesHuang0331 opened this issue Feb 19, 2025 · 1 comment
Open
3 tasks done
Assignees
Labels
bug Something isn't working Unreal

Comments

@JamesHuang0331
Copy link

前置阅读 | Pre-reading

Puer的版本 | Puer Version

master 25/2/18

UE的版本 | UE Version

UE 5.5.3

发生在哪个平台 | Platform

Editor(win)

错误信息 | Error Message

蓝图函数中,定义了形参,包含了单引号,生成的ue.bp.d.ts文件中会直接生成单引号,使得语法解析失败。
Image

以下为生成的ts函数定义:
Shot(BoneName: string, BodyImpact$: boolean, VehicleImpactStruct: UE.Game.CitySample.Vehicle.Blueprint.VehicleBulletImpactStruct.VehicleBulletImpactStruct, I'mSureisGlass: boolean, Shooter: $Nullable<UE.Actor>) : void;

问题重现 | Bug reproduce

  1. 在蓝图中创建函数,形参命名中包含单引号
    Image
  2. 点击gen ue.bp.d.ts按钮
  3. (双引号是否也会有问题?蓝图变量是否也会有问题?)
@chexiongsheng
Copy link
Collaborator

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