Click or drag to resize

PopupPopupCenteredClamped Method

Popup (show the control in modal form) in the center of the screen relative to the current canvas transform, clamping the size to size, then ensuring the popup is no larger than the viewport size multiplied by fallback_ratio.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public void PopupCenteredClamped(
	Vector2? size = null,
	float fallbackRatio = 0.75f
)

Parameters

size (Optional)
Type: SystemNullableVector2
If the parameter is null, then the default value is new Vector2(0, 0)
fallbackRatio (Optional)
Type: SystemSingle

[Missing <param name="fallbackRatio"/> documentation for "M:Godot.Popup.PopupCenteredClamped(System.Nullable{Godot.Vector2},System.Single)"]

See Also