I am studying Creator through the official demo Black Jack Game and met a problem in RankItem.js which is binding with rankItem Prehab.
Here is the codes:
I am curious at
this.spRankBG.spriteFrame = this.texRankBG[rank];. Where is the sprite frame initialized?
I dont’t find any initialize in Prehab or scripts.
I got the correct result when it runs in browser (rankinglist_1,rankinglist_2,rankinglist_3 images showed correctly)
Who can help me? Thank you very much