Fix bindings warning when using curve property/field

This commit is contained in:
Wojtek Figat
2025-12-30 22:51:37 +01:00
parent fa38f0ac91
commit 7f56d9456b

View File

@@ -703,6 +703,8 @@ namespace Flax.Build.Bindings
else if (nativeType.EndsWith("[]"))
{
parameterMarshalType = $"MarshalUsing(typeof(FlaxEngine.Interop.ArrayMarshaller<,>))";
if (!parameterInfo.IsOut && !parameterInfo.IsRef)
parameterMarshalType += ", In"; // The usage of 'LibraryImportAttribute' does not follow recommendations. It is recommended to use explicit '[In]' and '[Out]' attributes on array parameters.
}
if (!string.IsNullOrEmpty(parameterMarshalType))