Fix array count output parameter handling when returning arrays

This commit is contained in:
2022-11-28 00:07:02 +02:00
parent 4a1c1ebe3a
commit 676d87129c

View File

@@ -451,7 +451,7 @@ namespace Flax.Build.Bindings
returnMarshalType = $"MarshalUsing(typeof({returnValueType}Marshaller))";
}
else if (returnValueType == "byte[]")
returnMarshalType = $"MarshalUsing(typeof(FlaxEngine.ArrayMarshaller<,>), ConstantElementCount = 0)";
returnMarshalType = $"MarshalUsing(typeof(FlaxEngine.ArrayMarshaller<,>), CountElementName = \"returnCount\")";
else if (returnValueType == "bool[]")
{
// Boolean arrays does not support custom marshalling for some unkown reason...