Questions tagged [animation-states]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
27 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 ) ...
user avatar
  • 101
0 votes
0 answers
18 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, ...
user avatar
0 votes
0 answers
36 views

Unity - Reparenting and resetting child's transform properties offsets it from parent (using Timeline animations)

I am beginning to use Unity's Timeline for the first time. I am creating a simple intro sequence where the Animator Gameobject does a position displacement animation (the movements and rotations are ...
user avatar
0 votes
1 answer
99 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 ...
user avatar
  • 311
1 vote
0 answers
28 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 "...
user avatar
0 votes
0 answers
49 views

2D Animation position offset for certain states

I'm looking for a way to offset the position of an 2D animation for certain states. Storing the offset (x, y) is not a problem, my issue is how to manipulate the Animator to apply those coordinates (...
user avatar
  • 101
0 votes
0 answers
78 views

Unity `Animatior.keepAnimatorControllerStateOnDisable` doesn't work properly

I encountered an issue with Unity Animator component. Having 2 states: Normal (default state with no animated fields) Highlight (with animated fields) I call ...
user avatar
  • 311
0 votes
0 answers
30 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 ...
user avatar
0 votes
0 answers
301 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 ...
user avatar
0 votes
2 answers
358 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'." ...
user avatar
  • 19
0 votes
0 answers
20 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 ...
user avatar
0 votes
1 answer
206 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. ...
user avatar
  • 107
1 vote
1 answer
169 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: ...
user avatar
  • 649
1 vote
1 answer
88 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 ...
user avatar
0 votes
1 answer
104 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 ...
user avatar
  • 176
0 votes
1 answer
1k 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 ...
user avatar
0 votes
1 answer
328 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'...
user avatar
2 votes
1 answer
465 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 ...
user avatar
2 votes
3 answers
7k 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 ...
user avatar
  • 71
0 votes
1 answer
48 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. ...
user avatar
  • 105
1 vote
0 answers
226 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 ...
user avatar
1 vote
1 answer
704 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 ...
user avatar
  • 47
0 votes
3 answers
1k 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 ...
user avatar
  • 21
0 votes
1 answer
2k 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.
user avatar
5 votes
1 answer
8k 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, ...
user avatar
  • 541
0 votes
0 answers
427 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 ...
user avatar