Exemplo n.º 1
0
        public override void _Ready()
        {
            Game game = (Game)GetParent();

            Resolution = game.Resolution;
            SetSize();

            viewport = GetViewport();
            viewport.Connect("size_changed", this, "OnViewportSizeChange");
            OnViewportSizeChange();
        }
Exemplo n.º 2
0
 // Called when the node enters the scene tree for the first time.
 public override void _Ready()
 {
     view = GetViewport();
     view.Connect("size_changed", this, nameof(_OnVPSizeChanged));
     _OnVPSizeChanged();
 }