C#: Fix lookup for singleton instance types.

This commit is contained in:
Zae 2023-10-13 16:40:46 +08:00
parent ee118e7ffd
commit 55f74d99f4

View File

@ -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.