如何让场景的一部分全屏显示?

你可以使用Stage的fullScreenSourceRect属性来自定义你要全屏显示的区域。示例:

   
   
   
   
  1. private function partFullScreen ( ) : void {
  2. this. stage.fullScreenSourceRect = new Rectangle (vBox. x,vBox. y,vBox. width,vBox. height );
  3. this. stage. displayState = StageDisplayState.FULL_SCREEN;
  4. }

你可能感兴趣的:(如何让场景的一部分全屏显示?)