Hello, I am working on a simple 2D game and I’m trying to get the jumping animation but for some reason it won’t play. I get this warning on the Inspector when I look at the transition between AnyState to Jump and it reads Cannot preview AnyState transition. destination state does not have motion.
I belive this has something to do with the reason why I’m not seeing the animation but I can’t find anything on the internet about this error and I don’t know how to handle it. Does anyone know what is going on?
Well… does it have a motion? I believe this means that when you select the state box, its Animation field is not blank.
That’s the first place I would look anyway. Otherwise, just destroy all the states and rebuild the animator tree from the animations… it’s a pretty small problem space.
I’m not sure what you mean by motion, if by that you mean animation then it does have an animation.
I redid the animation and it seems to be working now, thanks
I’m getting the same mistake, and in console it states that the PlayableOutput is null
did you figure this out? running into this problem now
Please don’t necro-post, especially for a nullref. If you have a problem, make your own post. It’s FREE!
How to report your problem productively in the Unity3D forums:
This is the bare minimum of information to report:
- what you want
- what you tried
- what you expected to happen
- what actually happened, log output, variable values, and especially any errors you see
- links to documentation you used to cross-check your work (CRITICAL!!!)
If you post a code snippet, ALWAYS USE CODE TAGS:
How to use code tags: https://discussions.unity.com/t/481379
If you just have a nullref, you NEVER need to post for that!
How to fix a NullReferenceException error
https://forum.unity.com/threads/how-to-fix-a-nullreferenceexception-error.1230297/
Three steps to success:
- Identify what is null ← any other action taken before this step is WASTED TIME
- Identify why it is null
- Fix that