Skip to main content
4 votes
Accepted

Animator stuck in previous state and not transitioning, even if transition condition is true

I think you'll want to make your Hit variable a trigger, not a boolean. You can enable the trigger with SetTrigger and it will stay "armed" until it reaches a transition that uses it, then &...
DMGregory's user avatar
  • 141k
2 votes

What is the right approach for using foot ik for characters in slopes(Specially when in walk or run)?

When I implemented a foot IK system, I used a raycast each frame to determine the position of the ground in front of the foot. I used the raycast for all types of movement and it worked fine for my ...
Kevin's user avatar
  • 7,029
1 vote
Accepted

Trying to access existing animator SetTrigger does nothing and returns error

As I wrote in the comment, you are loading twice the same animator. While you do assign the correct ones in the inspector, in the code you are reloading the animators in the start method. Therefore in ...
Zibelas's user avatar
  • 5,099
1 vote

Animation Clip Won't Play Despite Transition Showing in Animator

Your animator doesn't have any transitions (other than the default Entry transition). A transition would be represented as a line between states (notice the line from "Entry" to "...
Kevin's user avatar
  • 7,029
1 vote

Whats the best way to handle large amounts of animations in unity for unique units?

According to the comments, all those automatically generated animator controllers would use the same logic but with different animations. In that case it's a good idea to just use a single animator ...
Philipp's user avatar
  • 123k
1 vote

Whats the best way to handle large amounts of animations in unity for unique units?

Using Animator Override Controller, you can easily swap animations without the need of creating a new animators.
Mansoor Ahmad Khan's user avatar
1 vote

Is it possible to make smooth transitions between clips in the Unity legacy Animation component?

The animation component can interpolate between two animation clips with the script method Animation.CrossFade. When you want to transition from the current ...
Philipp's user avatar
  • 123k
1 vote
Accepted

How to get the correct Input direction based on the camera angle to use in a rootmotion based third person controller

You have two steps here. Convert your controller-relative input into a desired direction in the world, based on the camera perspective. Convert your desired direction in the world to a steering ...
DMGregory's user avatar
  • 141k
1 vote
Accepted

Unity Animator not animating player, but following transitions perfectly in Animator Window

After some more hours trying to figure it out, and testing all the possible combinations, my animations play if I set the "Animation type" inside the "Rig" options of the animation,...
PayToPwn's user avatar
  • 123
1 vote

How do I set decimal values in 1D blend tree?

There is a bug in Unity: If you type the decimal separator as ".", it works. But not if you use ",". You can use "," anywhere else in Unity, and it will automatically be ...
tmighty's user avatar
  • 919
1 vote
Accepted

How do I restart an animation that is already playing using SetTrigger?

According to DMGregory's suggestion, I have created a transition from "Any State" to "Hit Animation", and now it works. Calling "SetTrigger("Hit")) repeatedly causes a restart of the "Hit Animation". ...
tmighty's user avatar
  • 919
1 vote

issues about combo attack system animation

so instead of linking these animation together, these attack animations should be transits with any state, with can transition to self unchecked
Chan Ming's user avatar
1 vote
Accepted

Unity animation plays in preview but not in playing mode

The SetCurve API Documentation has this to say: SetCurve will only work at runtime for legacy animation clips. For non-legacy AnimationClips it is an editor-only ...
Ed Marty's user avatar
  • 5,259
1 vote

Modifying Animator Controller parameters

If this is just an initial configuration, you can set it from the Start() method of an ordinary MonoBehaviour attached to the <...
DMGregory's user avatar
  • 141k

Only top scored, non community-wiki answers of a minimum length are eligible