From 55f74d99f4fdf7f40e2ef0afaa4c0844ced34c7a Mon Sep 17 00:00:00 2001 From: Zae Date: Fri, 13 Oct 2023 16:40:46 +0800 Subject: [PATCH] C#: Fix lookup for singleton instance types. --- .../GodotSharp/GodotSharp/Core/Bridge/ScriptManagerBridge.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/mono/glue/GodotSharp/GodotSharp/Core/Bridge/ScriptManagerBridge.cs b/modules/mono/glue/GodotSharp/GodotSharp/Core/Bridge/ScriptManagerBridge.cs index 9a7e19024b..80c26e5708 100644 --- a/modules/mono/glue/GodotSharp/GodotSharp/Core/Bridge/ScriptManagerBridge.cs +++ b/modules/mono/glue/GodotSharp/GodotSharp/Core/Bridge/ScriptManagerBridge.cs @@ -280,7 +280,7 @@ namespace Godot.Bridge if (wrapperType != null && IsStatic(wrapperType)) { // A static class means this is a Godot singleton class. Try to get the Instance proxy type. - wrapperType = TypeGetProxyClass($"{nativeTypeNameStr}Instance"); + wrapperType = TypeGetProxyClass($"{wrapperType.Name}Instance"); if (wrapperType == null) { // Otherwise, fallback to GodotObject.