Mesh.Clear() vs Mesh.Clear(bool keepVertexLayout) in 2017.2.0b4

Hi,

I am getting a “No overload for method ‘Clear’ takes ‘0’ arguments” for Mesh.Clear() when building a dll using the 2017.2 beta unityengine.dll.

According to Unity - Scripting API: Mesh.Clear mesh.Clear() is still safe to use.

When using and older unityengine.dll to build the dll “MissingMethodException: Method not found: ‘UnityEngine.Mesh.Clear’” is raised in beta 2017.2.0b4 when calling mesh.Clear().

Is this an issue with 2017.2 beta or should we use Mesh.Clear(bool keepVertexLayout) ?

Thanks,
Raoul

Hi raoul,
Thanks for reporting this. Sounds like a bug. Could you please file a bug report with a minimal reproduction case and reply in here with the case #?

Hi LeonhardP,

Thank you for the reply. I literally checked this on the issue tracker a minute ago and found this which seems related:

Do you still need me to file a bug report?

Thanks,
Raoul

Good catch. Can you check b5 and see if the error persists? The fix was approved a while ago.

I just tried b5. Unfortunately the error persists. And indeed the same error message as in my first post is raised when building the dll using the new b5 unityengine.dll.

Should I send a bug report or has the fix not made b5 yet?

Thanks,
Raoul

Turns out it hasn’t made it in yet. It’s scheduled to be merged next week, so the estimate release would be b7. A report shouldn’t be necessary.

Thank you :slight_smile:

Still present in 2017.2.0b8

This is fixed in 2017.2.0b9, available since yesterday

1 Like

Thanks for the info !