Not a bug

Warning for animation event functions with AnimationEvent parameter

Joe Fender 10 months ago • updated by Peter - Soxware Developer 2 weeks ago • 4

We get warnings as shown in the screenshots below. The Callback function exists, and looks like this:

public void Callback(AnimationEvent evt) { ... }


This is a standard Unity practice. After exporting, it does work, but if you could allow it to find functions with that pattern and accept them it would be great. Thanks.

Image 1562

Image 1563


Image 1564



UMotion Version:
1.29p04
Unity Version:
6000.1.2f1

Answer

Answer
Not a bug

Hi Joe,
thank you very much for your support request. The AnimationEvent type of parameter is currently not supported by the UMotion animation event system. Please use one of the types suggested by the "Type" dropdown.

Best regards,
Peter

Answer
Not a bug

Hi Joe,
thank you very much for your support request. The AnimationEvent type of parameter is currently not supported by the UMotion animation event system. Please use one of the types suggested by the "Type" dropdown.

Best regards,
Peter

Hmm, is it possible to add support? It does seem to be working even though there are warnings (in the sense that we get the function called with AnimationEvent type passed in). So maybe you can just not warn in those cases?

Yes, the animation event function should be exported and called properly. Its just that you can't provide a parameter via the UMotion UI of type AnimationEvent. Enhanced support might come in a future version.

Best regards,
Peter