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

Merge pull request #112023 from kevinlam508/dotnet-native-base-class-lookup

Fix dotnet class lookup returning modified names instead of engine names
This commit is contained in:
Thaddeus Crews
2025-10-27 10:01:36 -05:00

View File

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