记录一下这个问题。

原文地址:http://tieba.baidu.com/p/3561719701

 

object obj = Resources.Load(资源名, typeof(Sprite));
Sprite sp = obj as Sprite;
img.sprite = sp;

 

相关文章:

  • 2021-09-21
  • 2021-11-17
  • 2021-10-10
  • 2022-12-23
  • 2021-10-15
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-11-09
  • 2022-12-23
  • 2021-04-01
  • 2021-09-20
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案