You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-14 13:41:12 +00:00
Makes Mono bindings partial & adds GetNode<T>.
(cherry picked from commit a8c97eb094)
This commit is contained in:
committed by
Hein-Pieter van Braam
parent
e5aedf130f
commit
ba441c48b0
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