Click or drag to resize

VisualServerCanvasItemSetCustomRect Method

Defines a custom drawing rectangle for the CanvasItem.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public static void CanvasItemSetCustomRect(
	RID item,
	bool useCustomRect,
	Rect2? rect = null
)

Parameters

item
Type: GodotRID

[Missing <param name="item"/> documentation for "M:Godot.VisualServer.CanvasItemSetCustomRect(Godot.RID,System.Boolean,System.Nullable{Godot.Rect2})"]

useCustomRect
Type: SystemBoolean

[Missing <param name="useCustomRect"/> documentation for "M:Godot.VisualServer.CanvasItemSetCustomRect(Godot.RID,System.Boolean,System.Nullable{Godot.Rect2})"]

rect (Optional)
Type: SystemNullableRect2
If the parameter is null, then the default value is new Rect2(0, 0, 0, 0)
See Also