摘要: UI2DSprite roleSprite=GetComponent("roleSprite");var roleSprites = Resources.LoadAll("sprite的路径");roleSprite.sprite2D = roleSprites[1];//1是某一帧的索引 阅读全文
posted @ 2014-07-29 17:54 静水渊 阅读(2118) 评论(0) 推荐(0) 编辑