Questions tagged [animation-controller]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
24 views

How do I change the motion reference in an animation state during runtime?

I tried this solution: https://discussions.unity.com/t/how-to-change-animation-clips-of-an-animator-state-at-runtime-is-there-a-way/183135/4 But this doesn't work if I try to use a different animation ...
jus coakley's user avatar
0 votes
0 answers
25 views

SpriteResolver's category and label values null when I try to access them at runtime. How do I fix this and make sure I get these string values?

I'm working on creating an animation system used for mouth movement that works like this: BEFORE the animation clip starts playing, cache the SpriteResolver's state (category and label) Once the ...
KD867746's user avatar
0 votes
2 answers
400 views

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

So atm im working on a game where we need many different units each with their own animation set. Is there a way to automate this process? or do we have to create blend trees manually with each ...
Angelo's user avatar
  • 28
0 votes
1 answer
851 views

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

I'm trying to use the legacy Animation component for the UI and I can't find a way to make it go from one state to another smoothly. When using the Animator component the animated parameters change ...
Serg's user avatar
  • 363
1 vote
1 answer
937 views

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

The animator of my character gets stuck from time to time into the first attack animation instead of transitioning to the next one, even if the condition of transitioning is met. This problem gets ...
TensaDev's user avatar
0 votes
1 answer
158 views

Trying to access existing animator SetTrigger does nothing and returns error

First of all, I have a character with 2 armatures (Upper/Lower Body), where the Upper Body is the child of the Lower Body's root bone (Hip). This is intended, and I really don't want to touch the ...
505Legion's user avatar
  • 103
2 votes
1 answer
3k views

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

i use unity but this question applies for any third person controller or enemy controller. i need to use foot ik on slopes(any condition and any kind of slope) to place foot on right places. as i ...
virtouso's user avatar
  • 2,588
2 votes
0 answers
33 views

Best Practices for Random Enemy Animations?

For various animations for NPCs (getting hit with projectiles, shooting, dying) I've been creating 2-4 animations each in blender before exporting. Should I be doing this inside Unity with Animation ...
benbastien's user avatar
0 votes
1 answer
528 views

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

I move my character based on the rootmotion of their animation using a blend tree that uses 2D Freeform Cartesian input (Vertical, Horizontal) if Vertical = 1, the character moves forward based on the ...
alaslipknot's user avatar
0 votes
2 answers
244 views

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

I am trying to animate a model in my project, and although I have been successful doing the same in other projects, I am not succeeding in this one. The model does not seem to animate, although in the ...
PayToPwn's user avatar
  • 123
0 votes
1 answer
346 views

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

I have created a 1D blend tree. It is being used for a 3rd Person Controller. The blend tree consists of 3 animations: aim pistol down to the floor aim pistol at middle of the screen (straight ...
tmighty's user avatar
  • 899
0 votes
1 answer
299 views

How can I make a Unity Animation (interpolation from A to B) "procedural", by varying A and B?

Goal One might use a coroutine to interpolate an object's position from point A to point B. What I'm trying to do is store that interpolation as a Unity Animation file, but have the ability to ...
verified_tinker's user avatar
1 vote
0 answers
319 views

What is "Avatar" in the "Animation Controller" used for?

I'm using animation layers for a model of type "Generic". The "Base" layer contains an "Idle" animation. The "Shooting Layer" contains a pistol shooting ...
tmighty's user avatar
  • 899
0 votes
1 answer
3k views

Why does Avatar Mask not work as expected?

I have 2 layers: The base layer, and an upper body layer. On the upper body layer, I have an avatar mask because I only want to affect the upper body. However, this mask doesn't work as expected. Here ...
tmighty's user avatar
  • 899
0 votes
1 answer
226 views

Animating MultiPart 2D Character with RigidBodies

Some background to the question: I am attempting to animate and control a large multi sprite 2D Boss character for a platforming game. Up until this point I had been assigning individual animators for ...
MSB's user avatar
  • 101
0 votes
0 answers
14 views

How make animation only consider the final position?

I'm trying to make an energy indicator for a puzzle, and i decide to user animation to set the position of the red indicator(photo). My first ideia is to make 9 animations, and for every black arrow ...
Vinicius Morais's user avatar
1 vote
1 answer
975 views

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

I have set up a relatively simple example scene with one enemy. This enemy is controlled with an animation controller. In this animation controller, I have set up a trigger named "Hit". The enemy ...
tmighty's user avatar
  • 899
1 vote
1 answer
627 views

What does 'AlwaysResetOnEntry' do, and where would it be used?

In Unreal Animation Blueprints, each state has an option for AlwaysResetOnEntry. The tooltip text for this is: ...
Natalo77's user avatar
  • 679
0 votes
0 answers
24 views

How do I create a simple animation for use in Unity?

I'm trying to create a simple shrinking animation for use in Unity. The goal is to create an animation that shrinks the object to be 0.1 scale. I've created an Animator Controller with an empty state,...
Aaron Franke's user avatar
0 votes
0 answers
256 views

Update position using animation curves

Implementing the suggestions from this answered question, I am trying to move my player according to the animation. To do so, I am adding the transform.position property to the animation and then, ...
FSic's user avatar
  • 176
0 votes
0 answers
56 views

Calculate animation weights based on two variables

I am working on a custom engine and have been tinkering with animations using the Cal3D library. My previous experience with animations was based on prototyping a bit with Unity's Mecanim. Right now, ...
Devem's user avatar
  • 11
1 vote
1 answer
760 views

issues about combo attack system animation

i have some issues about my attack animations right now, i'm doing my light attack which has 3 separate attacks and animations. the scripting and trigger works(without animation), but my animation ...
Chan Ming's user avatar
1 vote
1 answer
2k views

Unity animation plays in preview but not in playing mode

I create a simple animation and an override controller for it with code. ...
hal's user avatar
  • 135
0 votes
1 answer
785 views

Modifying Animator Controller parameters

I have this GameObject with an AnimatorController. The AnimatorController has several states in which I want to parametrize the animation's speed because configuration. For this, I've created an ...
Neuromante's user avatar
2 votes
0 answers
441 views

Combine all animation state into one clip (.anim) file in unity

I have an animation controller where different animation states(clips) are available. Like this: Now my aim is to convert all this states animation into a single clip (.anim file). Is this possible. ?...
Muhammad Faizan Khan's user avatar