Forráskód Böngészése

Added parameters to Load()

(cherry picked from commit 1b0819bd595f6ca41ac6f357369ca4805c41c01e)
Phischermen 5 éve
szülő
commit
69c1805735

+ 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);
         }
     }
 }