GodotSharpAPI
GodotSharpAPI
Godot
Rect2 Structure
Rect2 Constructor
Rect2 Constructor (Vector2, Vector2)
Rect2 Constructor (Single, Single, Vector2)
Rect2 Constructor (Vector2, Single, Single)
Rect2 Constructor (Single, Single, Single, Single)
Rect2 Constructor (Vector2, Single, Single)
Constructs a Rect2 from a position, width, and height.
Namespace:
Godot
Assembly:
GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
Copy
public
Rect2
(
Vector2
position
,
float
width
,
float
height
)
Parameters
position
Type:
Godot
.
Vector2
The position.
width
Type:
System
.
Single
The width.
height
Type:
System
.
Single
The height.
See Also
Reference
Rect2 Structure
Rect2 Overload
Godot Namespace