2022年5月17日 星期二

Static Function and Blueprintcallable

當SetWahCarTime的參數 WashCarTime
和Static變數 WashCarTime 同名
Comiper會過不了 並告訴你錯誤的地方


人家C#、Java、Typescript都沒這問題
就你毛最多


但是當你把 WashCarTime 
從 float 改成 dobule 時
它什麼毛都不會告訴你



為什麼要把WashCarTime
宣告成dobule呢?

不是
FTimespan回傳給你的就是dobule阿



但就算你把參數
改成pWahCarTime
還是Comiper不過就是了



倒敘法大概就是這麼1回事吧

沒有留言:

張貼留言