LiuZijia
LiuZijia
## detail | 详细描述 开启空检查会导致生成的接口有些返回值没有加空类型 比如 UE.WidgetBlueprintLibrary.Create接口   这种可能返回 nullptr 的接口返回值描述改为 $Nullable 是否会好一些
通过Mixin和继承引擎类创建的tsClass不会调用到原生的constructor,导致ts类的属性默认值以及通过箭头方式定义的成员函数无法被初始化。而通过通常方式定义的函数,在回调时必须通过闭包才能访问this指针。但是如果委托参数过多书写起来很麻烦,需要在某些条件下需要对委托进行解绑还需要实现对闭包函数进行存储。所以想问下有没有什么简单的解决方案。 由于OnActorHitFunNew函数不是通过箭头定义,所以如果需要在回调中使用this指针 需要通过闭包,并且参数需要手动传递  能看到箭头函数是在constructor中实例化的 
## error log | 日志或报错信息 [2022.09.05-07.15.42:240][ 0]LogOutputDevice: Warning: Script Stack (1 frames): PEBlueprintAsset.Save [2022.09.05-07.15.43:763][ 0]LogWindows: Error: === Critical error: === [2022.09.05-07.15.43:764][ 0]LogWindows: Error: [2022.09.05-07.15.43:764][ 0]LogWindows: Error: Assertion failed: IsValid() [File:D:\UnrealEngine\ue5\Engine\Source\Runtime\Core\Public\Templates\SharedPointer.h]...
## context | 编译/运行环境 windows平台打包exe,使用v8 ## how to reproduce | 复现步骤 有一个static的函数定义 Npc,生成的ue.d.ts没问题也是Npc,但是运行时js的方法名是大写的NPC,感觉像是FName导致的问题,但是没找到具体的产生原因 
### 前置阅读 | Pre-reading - [X] [文档](https://puerts.github.io/unreal/zhcn/readme)/[Doc](https://puerts.github.io/unreal/en/readme) - [X] [Issues](https://github.com/Tencent/puerts/issues?q=is%3Aissue+sort%3Aupdated-desc+is%3Aclosed) - [X] [FAQ](https://github.com/Tencent/puerts/blob/master/doc/unreal/zhcn/faq.md) ### Puer的版本 | Puer Version 6256231 ### UE的版本 | UE Version 5.2 ### 发生在哪个平台 | Platform Editor(win)...
### 前置阅读 | Pre-reading - [X] [文档](https://puerts.github.io/unreal/zhcn/readme)/[Doc](https://puerts.github.io/unreal/en/readme) - [X] [Issues](https://github.com/Tencent/puerts/issues?q=is%3Aissue+sort%3Aupdated-desc+is%3Aclosed) - [X] [FAQ](https://github.com/Tencent/puerts/blob/master/doc/unreal/zhcn/faq.md) ### Puer的版本 | Puer Version master 5409d2a ### UE的版本 | UE Version 5.2 ### 发生在哪个平台 | Platform...