ソースを参照

loosen generic guard on method for ResourceLoader

For more details see #22658
zochris 7 年 前
コミット
4a11864968
1 ファイル変更1 行追加1 行削除
  1. 1 1
      modules/mono/glue/Managed/Files/GD.cs

+ 1 - 1
modules/mono/glue/Managed/Files/GD.cs

@@ -65,7 +65,7 @@ namespace Godot
             return ResourceLoader.Load(path);
         }
 
-        public static T Load<T>(string path) where T : Godot.Resource
+        public static T Load<T>(string path) where T : class
         {
             return (T) ResourceLoader.Load(path);
         }