Viewport.gd 342 B

12345678910111213141516171819
  1. extends Viewport
  2. var osize=Vector2(0,0)
  3. func _ready():
  4. osize=OS.get_window_size()
  5. set_size(osize)
  6. pass
  7. var passff=false
  8. func _process(delta):
  9. self.msaa
  10. if (osize!=OS.get_window_size())&&(passff):
  11. osize=OS.get_window_size()
  12. set_size(osize)
  13. #self.set_size_override(true,osize)
  14. #self.set_size_override_stretch(true)
  15. passff=true