Click or drag to resize

ViewportSetSizeOverride Method

Sets the size override of the viewport. If the enable parameter is true the override is used, otherwise it uses the default size. If the size parameter is (-1, -1), it won't update the size.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public void SetSizeOverride(
	bool enable,
	Vector2? size = null,
	Vector2? margin = null
)

Parameters

enable
Type: SystemBoolean

[Missing <param name="enable"/> documentation for "M:Godot.Viewport.SetSizeOverride(System.Boolean,System.Nullable{Godot.Vector2},System.Nullable{Godot.Vector2})"]

size (Optional)
Type: SystemNullableVector2
If the parameter is null, then the default value is new Vector2(-1, -1)
margin (Optional)
Type: SystemNullableVector2
If the parameter is null, then the default value is new Vector2(0, 0)
See Also