矩形遮罩
shp.mask = new egret.Rectangle(20,20,30,50);
 
注意如果rec发生变化,需要重要将rec赋值给shp.mask
删除遮罩的方法
sprite.mask = null
显示对象作为遮罩,无需像矩形遮罩那样重复赋值 mask,但是 mask 必须是显示列表里元素。
   
   
   

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-07-01
  • 2021-04-14
  • 2021-10-13
  • 2021-07-05
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-05
相关资源
相似解决方案