Fix soft refs in bindings to match C# version that is not generic

This commit is contained in:
Wojtek Figat
2023-09-28 11:47:16 +02:00
parent 44292efa04
commit 77f962b33d

View File

@@ -299,6 +299,8 @@ namespace Flax.Build.Bindings
// Object reference property
if (typeInfo.IsObjectRef)
return GenerateCSharpNativeToManaged(buildData, typeInfo.GenericArgs[0], caller);
if (typeInfo.Type == "SoftTypeReference" || typeInfo.Type == "SoftObjectReference")
return typeInfo.Type;
// Array or Span or DataContainer
#if USE_NETCORE