Questions tagged [animation-controller]
The animation-controller tag has no usage guidance.
25
questions
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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:
...
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,...
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, ...
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, ...
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 ...
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.
...
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 ...
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. ?...