[]设置viewport后显示区域变黑色

在TileMap的MapLayer的init函数中
 
如果设置viewport,显示区域变黑
如果设置scrollRect,正常显示
 
            
//          this.viewport = new Rectangle(0, 0, Laya.stage.width, Laya.stage.height);
            this.scrollRect = new Rectangle(0, 0, Laya.stage.width, Laya.stage.height);
已邀请:

要回复问题请先

商务合作
商务合作