Merge pull request #36842 from Phischermen/mono-resource-loader-extension-update

Mono/C#: Add missing parameters to 'ResourceLoader.Load<T>()'
This commit is contained in:
Rémi Verschelde 2020-03-06 22:54:11 +01:00 committed by GitHub
commit 6635e25b2c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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