mirror of
https://github.com/godotengine/godot.git
synced 2024-11-25 05:33:11 +00:00
Merge pull request #83249 from zaevi/fix_csharp_lookup_singleton_instance
C#: Fix lookup for singleton instance types.
This commit is contained in:
commit
68cc80ee58
@ -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