Latent functions cannot be used in AnimBPs

With the release of 4.12, I have become unable to use latent functions in AnimBPs, in particular the latent actions that give you the option to start and stop play. The error I get when I try to fire the MoveComponentTo for instance is "Error Default value ‘execute’ for Value is invalid: ‘‘execute’ is not a valid enumerant EMoveComponentAction’’

Custom latent actions (with a different UENUM to drive play) suffer from the same problem. I have tried adding “execute” to the enum and while this does cause the error to disappear, it also causes undesirable results during latent execution (I don’t think the latent execution actually plays, and the “completed” is also never called).

The problem seems to be unique to AnimBPs. I have no problem putting the latent functions elsewhere. The latent functions in AnimBPs still worked in 4.11.

Hey cridia,

Please excuse my previous post. Upon further examination, I was able to reproduce the issue and have entered it as UE-32201. Thank you for reporting this.

For the time being, I’d work around it by casting back to an event in your CharacterBP that fires the MoveComponentTo function.