動態修改NGUI UI2DSprite

UI2DSprite roleSprite=GetComponent<UI2DSprite >("roleSprite");
var roleSprites = Resources.LoadAll<Sprite>("sprite的路徑");
roleSprite.sprite2D = roleSprites[1];//1是某一幀的索引
相關文章
相關標籤/搜索