mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03:00
Merge pull request #100685 from raulsntos/dotnet/collection-expressions
[.NET] Use collection expressions in docs
This commit is contained in:
@@ -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].
|
||||
|
||||
Reference in New Issue
Block a user