Greetings,
I've been working with Unity 5 along with the current ORK 2.4.1 and all is going really well except for an animation issue. The 'Attack" animation was working great in Unity 4.6.1 but now is not. All the others are fine, Idle, Walk, Run etc. Even the 'Special Attack' I created works great. I'm not sure where to look to try and fix it since it feels kind of random. Any thoughts or ideas would great! :)
Thanks
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Follow the game Development on Twitter https://twitter.com/Fore_Lore_Games
or check out the face book page here https://www.facebook.com/ForeLoreGames
The auto speed parameters are set every frame by ORK, if the animator was attached when the animations where initialized.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Well, after you said it was the Animator, I went and checked that out and yes I have it on the prefab. However, I found out what was the issue. It is the "Apply Root Motion" checkbox thats causing the Auto Speed Parameters not to be called when Apply Root Motion is checked. Most of my animations are dependent to Unity Animator Controller and I am using the parameters within it to move my characters and all sorts of other neat stuff thats why I am dependent to the Apply Root Motion that needs to be checked to animate with Physics. Is there perhaps a way I may fix this? Thank you kindly GiL for pointing out the problem =P
Also, if you're using a built-in player control (or any control using a CharacterController component), that will not work with root motion.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
I still am having the same issue that I had when I posted this the first time. I'm not sure what exactly to check. For my part, all I did was copy the Unity 4.6.1 project and open it Unity 5, which of course converted it to 5. I also updated to ORK 2.4.1.
Nothing has changed that I can tell. I double checked the settings to be sure the triggers were set etc. as well as in ORK.
I guess what I'm saying is I didn't change anything other than updated the project. All the other animations are working for the model. All of them play fine in the Animator view. The transitions look fine. So I'm stuck as to how to proceed. Any ideas or suggestions would be awesome! :)
Thanks
Follow the game Development on Twitter https://twitter.com/Fore_Lore_Games
or check out the face book page here https://www.facebook.com/ForeLoreGames
Edit: noticed the package had an update, so I reimported the punch animation. But no change. Thanks again for the idea :)
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Follow the game Development on Twitter https://twitter.com/Fore_Lore_Games
or check out the face book page here https://www.facebook.com/ForeLoreGames
I also tried substituting another animation for Attack (e.g. Breath weapon instead of punch) and that didn't do anything different either. The breath attack is working correctly when it's supposed to. So I know the anim itself is good.
The animation in ORK (Base/Control > Animations > Default Macanim) never changed from Unity 4.6 to 5 but I double-checked everything in there just to be sure. The State names and the parameter names all match up.
I'm using the original attack Battle Event from the tutorials, and nothing was changed there either.
Sorry for the wall of text. I just thought I'd let you guys know what I've tried in the event you think of something I've overlooked.
@wtyson
I would do a small vid but there's really nothing to see. Just the combatant running up to the player and standing there. Not much help I'm afraid :)
Follow the game Development on Twitter https://twitter.com/Fore_Lore_Games
or check out the face book page here https://www.facebook.com/ForeLoreGames
Thanks I appreciate it. At the moment I'm not set up to really do a video.
The previews etc. are running fine as far as I can tell. They look fine in the Transition previews, animation itself in the inspector runs fine... So I don't know. Thanks man :)
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!