puerts icon indicating copy to clipboard operation
puerts copied to clipboard

[功能支持] TypeScript声明文件生成,支持函数参数默认值(或可选参数)

Open QenBx opened this issue 3 years ago • 3 comments

C++: image

ue.d.ts: image

QenBx avatar May 24 '21 08:05 QenBx

更新最新版本试试

chexiongsheng avatar May 26 '21 12:05 chexiongsheng

现在的版本函数参数默认值有bug,比如一个布尔型默认值是true,在TS中不写该参数时的值会是false。我复现的情况是UNiagaraFunctionLibrary的SpawnSystemAtLocation中的bAutoDestroy,Puerts版本是更新到这个提交:8ec543e

KaiQian avatar Jul 26 '21 02:07 KaiQian

现在的版本函数参数默认值有bug,比如一个布尔型默认值是true,在TS中不写该参数时的值会是false。我复现的情况是UNiagaraFunctionLibrary的SpawnSystemAtLocation中的bAutoDestroy,Puerts版本是更新到这个提交:8ec543e

UE要求bool默认值导入只认True,不认true导致的。然而它的cpp meta那取到的确是true。 你更新到最新版本,已经解决。 ps,如果有问题,应该另开新issue。你这样提很容易漏看

chexiongsheng avatar Aug 02 '21 11:08 chexiongsheng