diff options
| author | Sophia Pearson <codergal89@gmail.com> | 2022-10-03 22:22:50 +0200 |
|---|---|---|
| committer | Sophia Pearson <codergal89@gmail.com> | 2022-10-04 22:18:18 +0200 |
| commit | e127ad39e742396030352240d829bc903b1d4464 (patch) | |
| tree | 10cc21d70bf13181aef7c8ad0344077ff63579a3 /Scripts/GodotExtensions/NodeExtensions.cs | |
| parent | ddbb045f6387a8ba23b1210b27a745516a387a52 (diff) | |
| download | texty-e127ad39e742396030352240d829bc903b1d4464.tar.xz texty-e127ad39e742396030352240d829bc903b1d4464.zip | |
godot: inital Godot 4 migration
Diffstat (limited to 'Scripts/GodotExtensions/NodeExtensions.cs')
| -rw-r--r-- | Scripts/GodotExtensions/NodeExtensions.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Scripts/GodotExtensions/NodeExtensions.cs b/Scripts/GodotExtensions/NodeExtensions.cs index b398985..c361496 100644 --- a/Scripts/GodotExtensions/NodeExtensions.cs +++ b/Scripts/GodotExtensions/NodeExtensions.cs @@ -6,7 +6,7 @@ namespace Texty.Scripts.GodotExtensions { public static class NodeExtensions { - public static Array<T> GetChildren<T>(this Node node) + public static Array<T> GetChildren<[MustBeVariant] T>(this Node node) { return new Array<T>(node.GetChildren().OfType<T>()); } |
