quick下sprite的大小获取,记录一下:

local w = sprite:getContentSize().width

local h = sprite:getContentSize().height

今天连这个最基本的,都不知道怎么获取。挺实用的代码额~

相关文章:

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