Control.rectScale

The node's scale, relative to its rectSize. Change this property to scale the node around its rectPivotOffset. The Control's hintTooltip will also scale according to this value. Note: This property is mainly intended to be used for animation purposes. Text inside the Control will look pixelated or blurry when the Control is scaled. To support multiple resolutions in your project, use an appropriate viewport stretch mode as described in the url=https://docs.godotengine.org/en/3.3/tutorials/viewports/multiple_resolutions.htmldocumentation/url instead of scaling Controls individually. Note: If the Control node is a child of a Container node, the scale will be reset to Vector2(1, 1) when the scene is instanced. To set the Control's scale when it's instanced, wait for one frame using yield(get_tree(), "idle_frame") then set its rectScale property.

  1. Vector2 rectScale [@property getter]
  2. Vector2 rectScale [@property setter]
    struct Control
    @nogc nothrow @property
    void
    rectScale
    (
    Vector2 v
    )

Meta