Fix scripting api bindings for types with changed scripting name (other than native type name)

This commit is contained in:
Wojciech Figat
2022-10-26 15:00:29 +02:00
parent d90245bf32
commit 19f1c4251c
6 changed files with 10 additions and 6 deletions

View File

@@ -983,7 +983,7 @@ namespace Flax.Build.Bindings
if (functionInfo.IsStatic)
{
// Call native static method
string nativeType = caller.Name;
string nativeType = caller.Tags != null && caller.Tags.ContainsKey("NativeInvokeUseName") ? caller.Name : caller.NativeName;
if (caller.Parent != null && !(caller.Parent is FileInfo))
nativeType = caller.Parent.FullNameNative + "::" + nativeType;
call = $"{nativeType}::{functionInfo.Name}";