Fix dotnet class lookup returning modified names instead of engine names
This commit is contained in:
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user