preLoadScene的OnProgress的进度值可以获得,但无法传出


preloadscenen里面通过ompletedCount/totalCount可以获得进度的值,也可以打印的出来。但是赋值给this.num就不起作用了,就一直为0。赋值给sprite的fillRange也报错,无法识别api。
微信截图_20221230105643

你这是this指向不对。你把回调改成箭头函数就好了