mirror of
https://github.com/godotengine/godot.git
synced 2024-11-22 12:12:28 +00:00
C#: Fix lookup for singleton instance types.
This commit is contained in:
parent
ee118e7ffd
commit
55f74d99f4
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user