Merge pull request #100685 from raulsntos/dotnet/collection-expressions

[.NET] Use collection expressions in docs
This commit is contained in:
Thaddeus Crews
2024-12-23 11:15:15 -06:00
17 changed files with 73 additions and 73 deletions

View File

@@ -641,13 +641,13 @@
[/gdscript]
[csharp]
// Set region, using Path2D node.
GetNode<Window>("Window").MousePassthrough = GetNode<Path2D>("Path2D").Curve.GetBakedPoints();
GetNode<Window>("Window").MousePassthroughPolygon = GetNode<Path2D>("Path2D").Curve.GetBakedPoints();
// Set region, using Polygon2D node.
GetNode<Window>("Window").MousePassthrough = GetNode<Polygon2D>("Polygon2D").Polygon;
GetNode<Window>("Window").MousePassthroughPolygon = GetNode<Polygon2D>("Polygon2D").Polygon;
// Reset region to default.
GetNode<Window>("Window").MousePassthrough = new Vector2[] {};
GetNode<Window>("Window").MousePassthroughPolygon = [];
[/csharp]
[/codeblocks]
[b]Note:[/b] This property is ignored if [member mouse_passthrough] is set to [code]true[/code].