浏览代码

Added parameters to Load()

(cherry picked from commit 1b0819bd595f6ca41ac6f357369ca4805c41c01e)
Phischermen 5 年之前
父节点
当前提交
69c1805735
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      modules/mono/glue/GodotSharp/GodotSharp/Core/Extensions/ResourceLoaderExtensions.cs

+ 2 - 2
modules/mono/glue/GodotSharp/GodotSharp/Core/Extensions/ResourceLoaderExtensions.cs

@@ -2,9 +2,9 @@ namespace Godot
 {
     public static partial class ResourceLoader
     {
-        public static T Load<T>(string path) where T : class
+        public static T Load<T>(string path, string typeHint = null, bool noCache = false) where T : class
         {
-            return (T)(object)Load(path);
+            return (T)(object)Load(path, typeHint, noCache);
         }
     }
 }