1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-09 12:50:35 +00:00

Fix dotnet class lookup returning modified names instead of engine names

This commit is contained in:
Kevin Lam
2025-10-24 23:22:50 -05:00
parent ab6c6eece8
commit e6f441ea64

View File

@@ -250,7 +250,8 @@ namespace Godot.Bridge
} }
if (!foundGlobalBaseScript) if (!foundGlobalBaseScript)
{ {
*outBaseType = Marshaling.ConvertStringToNative(native.Name); string nativeName = native.GetCustomAttribute<GodotClassNameAttribute>(false)?.Name ?? native.Name;
*outBaseType = Marshaling.ConvertStringToNative(nativeName);
} }
} }