在使用Ngui 3.4.9的时候,使用“Unity 2D Sprite”控件的时候,出现了UnityException: Sprite is not rectangle-packed. TextureRect is invalid.错误。

原因是:The default packing setting for Unity 4.3 sprites is "tight" which means that you cannot use Sprite.rect to calculate the sprite UVs:

sprite默认导入的时候,Mesh Type是tight,这样则不能使用Sprite.rect来计算sprite的UV。

要解决这个问题,则需要在sprite导入的时候,设置如下:NGUI ERROR:UnityException: Sprite is not rectangle-packed. TextureRect is invalid.解决

相关文章:

  • 2022-12-23
  • 2021-04-07
  • 2021-06-02
  • 2021-07-10
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-12
  • 2021-04-17
  • 2022-12-23
  • 2022-02-06
  • 2021-10-08
  • 2021-07-15
  • 2021-12-29
相关资源
相似解决方案