chexiongsheng / puerts_unity_demo

unity demo for puerts
Other
198 stars 80 forks source link

执行Generate index.d.ts 命令生成了奇怪的代码导致npm run build 通不过(用Unity2021.1.11打开工程) #19

Open fuliufuliu opened 3 years ago

fuliufuliu commented 3 years ago

image

fuliufuliu commented 3 years ago

暂时的解决办法是:手动删除这段代码后,可以编译通过

fuliufuliu commented 3 years ago

执行Generate Code 也报了错,System.ArgumentException: Illegal characters in path. filePath:D:/MyGame/Tests/PuertsUnityDemo/Assets/Gen/UnityEngineArticulationReducedSpacee__FixedBuffer_Wrap.cs 应该是同一个问题 image

chexiongsheng commented 3 years ago

这是你返回的生成列表有匿名类。 新puerts好像有做了过滤,demo用的puerts不一定是最新的,用最新的库试试:https://github.com/Tencent/puerts/tree/master/unity