You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +00:00
Makes Mono bindings partial & adds GetNode<T>.
This commit is contained in:
10
modules/mono/glue/cs_files/NodeExtensions.cs
Normal file
10
modules/mono/glue/cs_files/NodeExtensions.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
namespace Godot
|
||||
{
|
||||
public partial class Node
|
||||
{
|
||||
public T GetNode<T>(NodePath path) where T : Godot.Node
|
||||
{
|
||||
return (T)GetNode(path);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user