Questions tagged [animation-states]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
46 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
1 vote
2 answers
70 views

How are gameplay animations described to an animator before they are made?

I'm working on a fangame project as an animator and I got a list of animations to make that looks like this: Idle Run Punch Swim etc. Now, an anim like Idle or a walk cycle will be fairly obvious in ...
Delano762's user avatar
0 votes
1 answer
332 views

Make ready player me Avatar replicate animation from Mixamo by pressing an oculus quest2 controller button

I have a ready playerme avatar that I rigged with Final IK. I downloaded an animation from mixamo to play with this avatar. My goal is to animate the avatar with the downloaded animation once a button ...
Craving_gold's user avatar
0 votes
0 answers
66 views

Should I use blend or state or layer for jump?

I am very confused on unity animation system. Should I be using a blend or state or layer? I need the following animations walk ( WASD ) run ( shift + WASD ) jump ( space ) push/pull ( p) throw ( t ) ...
Alt C's user avatar
  • 101
0 votes
0 answers
89 views

Handling missing animation transition

My problem is in the animator, when an animation parameter is triggered, there are some unexpected cases that there is no animation transition from the current state to the state I want to go to, ...
IndyKuma's user avatar
0 votes
1 answer
1k 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
  • 383
1 vote
0 answers
211 views

Using an Animator State as a Switch with no Animation

I have the attached portion of a sub-state machine in my animator. The parent layer is connected to the states "Standing" and "Prone Idle" using transitions with conditions "...
Minoush82's user avatar
0 votes
0 answers
34 views

Delayed rendering of object sprite

I'm trying to replicate an odd feature of an 2.5D online Fighting Game named Grand Chase - that I believe it's is made to hide the latency between players. However, I do not know what exactly is this ...
Luiz Henrique's user avatar
0 votes
0 answers
755 views

Why a method call in OnStateEnter and OnStateExit do not invoke in the correct order?

I have a class that extends from StateMachineBehaviour. All I want to do is invoke some code in a specific state's first frame and the last frame to trigger some ...
Yekta Sarıoğlu's user avatar
0 votes
2 answers
735 views

"Invalid call. Nonexistent function 'travel' in base 'Nil'."?

I was perfect as I could possibly be with this code but for some reason every time I try to play the game it just breaks. It says "Invalid call. Nonexistent function 'travel' in base 'Nil'." ...
Phoenix's user avatar
  • 19
0 votes
0 answers
27 views

Unity Animator not properly following animation transitions

I have an Animator that has 3 different states. Walking, Climbing, and End of Climb. The diagram is shown below: I have 2 bools, isClimbing and ...
Gary Holiday's user avatar
0 votes
1 answer
664 views

Animator State does not switch immediately through code, even tho all transitions have "Has Exit Time" checked off

first of all, this is my code, I'm prototyping a state machine using Unity Animator (First Time) and I'm stuck coding a simple burst of speed. ...
Venay's user avatar
  • 207
1 vote
1 answer
721 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
1 vote
1 answer
122 views

How to instantiate new GameObject at position of old GameObject onAnimationComplete

I have a GameObject that is a Farmer that plants Seeds. The Seeds will animate into Plants. Once that animation is complete, I'd like to replace my Seed with a Plant. This happens hundreds of times ...
Glen Pierce's user avatar
0 votes
1 answer
219 views

Coroutine constantly updating animator transition

I have a problem for a while now and I am running out of ideas: I have a made a coroutine used to implement animations in the attacks, something like this ...
FSic's user avatar
  • 176
1 vote
1 answer
6k views

How can I restart an animation?

The first time the player clicks a button, my animation plays properly. The problem is that when the player presses the button a second time, the animation does not play. Here is the code I'm using ...
Rahul Patil's user avatar
0 votes
1 answer
576 views

In Cricket games, how is the ball synced with batsman's shot animation? How does the ball hit right at the center of the bat? How does this work?

I've been trying to figure this out for quite some time now. In Cricket games, when the bowler bowls, and batsman takes a shot, how does the ball sync with batsman's shot animation? For example, let'...
Transparent Root's user avatar
2 votes
1 answer
727 views

How to get an axe chopping animation to stop on collision with tree and smoothly go back to idle state?

Been stuck on this one for a few days. I have an axe that moves around with the mouse. When the mouse is in range of a tree, you can left click to start the axe swing animation. Once the animation ...
JacketPotatoeFan's user avatar
2 votes
3 answers
9k views

Can't get the current animation state name (hash or .IsName) to work

I have some hard times trying to get the current animation state name in Unity, to perform specific actions while I'm in a certain state. I want to know when I'm the "ThoughtsStill" state, I only have ...
Izzo's user avatar
  • 71
0 votes
1 answer
51 views

Problems with Unity3D Animator controller states

I have an object (a simple card) equipped with the Rigidbody, Collider and Animator components. In particular, Animator performs two simple clips: Cover and Uncover that rotates the card 180 degrees. ...
kitsune's user avatar
  • 105
1 vote
0 answers
307 views

Possible to use StateMachineBehaviour with Blend Trees?

One of the touted benefits of the StateMachineBehaviours is adding a sound hook to an animation state. That sounds great! Unfortunately, I'm not sure how I could do ...
StuckInPhDNoMore's user avatar
1 vote
1 answer
1k views

Parameter 'Blend' doesnt exist

I want to animate my character, but i got this error: Parameter 'Blend' doesnt exist. if i use 1d Blend Type it works fine no bug nothing. But if i change the Blend type in the animation panel ...
Boyesz's user avatar
  • 47
0 votes
3 answers
2k views

How to make a door stay open if the player is inside the trigger zone?

I've been struggling with this for all day long, I want to make a door to stay open when the player is inside the trigger zone, but I cannot make it happen... Here is what I did: A basic animations ...
NAYIR55's user avatar
  • 21
0 votes
1 answer
3k views

Change animation speed through the editor in Unity

How can I change the speed of the animation through the editor if I have the following animation structure? I would like Adult1@walk to play faster.
pasteMyCode's user avatar
6 votes
1 answer
11k views

Unity3d - Immediately force transition without waiting until current animation ends

I created a animation Controller and attached it to the Animator component of my main camera. My Animation Controller looks like this: I am building a Main Menue. If the user presses on the buttons, ...
Black's user avatar
  • 621
0 votes
0 answers
629 views

Play animation state's clip from particular time or fram

I have a controller where i have a animation state. I want to play that animation clip from specified frame to specifed end frame. is this possible? here is the snap shot of the controller currently ...
Muhammad Faizan Khan's user avatar