Questions tagged [animator]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
12 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 (...
0
votes
0answers
55 views

Why does this work but this doesn't even though they are the same thing?

In my game I am trying to trigger the death animation but it doesn't work when I use anim.SetBool("isDead", true); however when I use ...
0
votes
0answers
17 views

Does Animator.StartRecording(int frameCount) scale the framebuffer if not stopped by Animator.StopRecording()?

During testing, the Animator played the same animation, which generally goes for 2.30 fs of a second in real time. It contains 90 frames. I know I'm calling the ...
0
votes
1answer
68 views

How can I create a animator parameter in a script, unity?

In unity we can create parameters in the animator tab to help to control changes in animation. I'm able to create this parameters in the unity itself and manipulate them in the C# script, but I want ...
1
vote
1answer
46 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 ...
1
vote
2answers
669 views

What does "Write Defaults" in the animation state inspector actually do?

In my Unity project, I had an issue recently where a tool which autogenerated animation controller layers caused issues with existing layers because it was generating layers with Write Defaults set to ...
0
votes
1answer
45 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 ...
0
votes
0answers
14 views

Move animation bones hierachy

I took an asset from the asset store with some animation. The animation expect the Animator to be put directly on the object that contains all the bones. => fbx (with animator) => bones I would ...
0
votes
0answers
35 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 ...
0
votes
0answers
39 views

Using transitions and animating my human body such as getting up and walking

I'm pretty new to Unity and I need help. So my problem is: I have my human laying in bed, I press start the game and he starts walking, he ignores the getting up animation and goes straight to the ...
0
votes
1answer
79 views

Unity Animator Ignoring "Higher" Layers

I have a rather rudimentary layer set up: Lower Body: no mask, full weight, override. Upper Body: upper body mask, full weight, override. This works as intended. Standing Up: full body mask, full ...
1
vote
0answers
59 views

Turnaround animation

So I have a Moose with 3 animations: idle, walk, turnaround. Idle and walk are mostly self explanatory while the spritesheet for the turnaround animation looks like this: I set an animator with 3 ...
0
votes
0answers
6 views

Weird anomaly with animator controller during testing

When running the game in the editor, my characters speed is not what the animator is set for. The speed is set at 2 at runtime but it moves considerably faster. Upon looking at the animator parameters ...
0
votes
0answers
38 views

GetCurrentAnimatorStateInfo(0) returns animation hash which is not found in list of animations

I trigger the animation "hg reload g2f" from "Any State" using a trigger. Here is a screenshot of my animator: I would now like to detect if the animation is still being played. ...
1
vote
2answers
89 views

How to check if gun may shoot again (because animation has stopped playing)?

When the user presses the fire button, I set a trigger: _animator.SetTrigger("HG_Shoot"); This trigger causes a "pistol shoot" animation to be ...
0
votes
1answer
191 views

How can I disable an Animator from the Animation in Unity?

How can I disable an Animator from the Animation in Unity? The Animator enablement checkbox seems to be highlighted, which makes me believe that the enablement of the Animator is an animatable ...
0
votes
1answer
27 views

Why does Animator component prevent the player from facing left?

I'm making a 2D platformer with Unity. A few days ago, I was testing the game; the player could face right and left based on its moving direction and animations were playing correctly. I exited ...
0
votes
3answers
90 views

How can I play an animation as long as the player is on the pressure pad?

I'm making a 2D platformer with Unity. Recently, I implemented a pressure pad system. Basically, when the player triggers the pad, a door near there should be opened. The system works properly but the ...
0
votes
0answers
13 views

How would I use an object from another animation in Unity?

So I have two different .blend files with two different animations. Let's call my aiming with a gun animation animation A, and my other .blend file with idle, run, and jump animations animation B. If ...
0
votes
0answers
152 views

How would I edit .anim files in Blender?

I absolutely cannot stand animating in Unity. I am making an FPS game with many weapons, and each weapon has four animations: running, jumping, aiming, and shooting. I would like to create a .anim ...
0
votes
1answer
39 views

How would I add keyframes to my animation clip from another object in Unity?

I am creating an FPS game which will have many weapons that have their own animations. I will need to access keyframes of the character's position, rotation, and scale, how will I do that? I can only ...
0
votes
2answers
42 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
1answer
102 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
1answer
41 views

Animate moving object

I have a sphere shot out of a cannon which i need to get lined up with another sphere when and if the two spheres collide. Considering that both spheres are moving (one in X and the other is shot at ...
0
votes
1answer
74 views

How would I have multiple keys control one bool in the Animator Control?

I have been working on an update to my game. I want to add a Third Person Character Controller. I have the basic Third Person Character Controller and a basic script that works with the Animator ...
0
votes
0answers
19 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 ...
0
votes
0answers
27 views

Animation doesn't play in one state

I have created an Animator and two sprite-based Animations. Both Animations preview correctly. In the Animator, I have created two states and two transitions between them based on a Boolean parameter. ...
1
vote
0answers
45 views

Ethan does not run

I just imported Ethan - the third person character to my Unity 2019 project and I moved him around a plane. But for some reason he doesn't run, only walk. I logged the ...
0
votes
0answers
12 views

Unity animator causing lights to turn on sluggishly?

I've got lights on a vehicle that I am controlling using several animations. I have an animator with multiple layers and everything works properly. However, I am having an issue where the lights take ...
0
votes
1answer
142 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. ...
0
votes
1answer
32 views

Animation is delayed after few play attemps even though all transition times' are zero

I am trying to play animation forward and backward when player press the same button again and again. I have a straight line and I want to convert it to 8 while moving it. I want to play animation ...
0
votes
1answer
605 views

When importing Mixamo animated characters into Unity, they come without avatar?

I'm using Unity 2019.3.3f1. I create the character in Adobe Fuse. I uploaded it to Mixamo and choose an animation. I then downloaded the fbx for unity file. When imported into Unity, it is visible ...
0
votes
0answers
396 views

Animation shown as playing in the animator, but it doesn't show in game (Unity 2D/C#)

I have an Animator on this gameObject. The Animator hits one state when some parameters are true, it can transition to this state from any state. The parameters are fine because i can see in the ...
0
votes
0answers
24 views

Animation for some reason doesn't trigger after death

So I am trying to trigger this explosion animation after this enemy dies, but for some reason the animation doesn't trigger. I've made sure that the explosion animation is linked to "Any State", and ...
0
votes
1answer
56 views

How to reach IK Pass and weight by script?

I need to reach IK Pass box, and control the weight by time from 1 to 0. I tried GetLayerIndex and did not give me any of those options.
0
votes
1answer
69 views

How to make an animation play when a button is pressed once?

I have added an idle and jump animation to a character in unity. I can make the animation happen when the button is pressed. If the button is up middle at the animation the character goes to the idle ...
1
vote
1answer
464 views

Does Animator.SetBool take precedence over Animator.SetTrigger in Unity's Animator?

I've got an Animator with transitions from Idle to Walk or Dash. Walk requires isGrounded to be true and a float MoveX to be greater than .2. The Dash animation requires Dash trigger is returned. In ...
0
votes
0answers
19 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
0answers
149 views

Multiple updates for Unity animation per one method call

I'm trying to do some simulation where I move objects procedurally in a loop within one method call. So instead of using Update(), method I do for example: ...
0
votes
1answer
989 views

SetIKHintPosition and SetIKHintPositionWeight seems to have no impact

I have recently been exploring Unity's inverse kinematics, to further polish the interaction between our rigged avatars and props. I have made a sample project, using PuppetMaster's basic humanoid ...
0
votes
1answer
62 views

Animator from another gameobject keeps disappearing from script on play

I am working on a gun script and it worked fine until earlier today when I made a change to the script and it stopped working. I put it back, but for some reason now the animator object attached to ...
0
votes
1answer
349 views

Instant Animation Transitions? Nothing I read about is working

re-imported my character today with 3 new animations (JumpStartState, JumpDownState, JumpEndState) and moved all animation code into the PlayerController script. All of my animations are handled by ...
0
votes
1answer
53 views

Animation is not starting even though collider is triggered?

progress is steady but it is a bumpy road. I have removed the animation script from my character and reworked it into the controller script. I have also added new animations. Doing this required ...
0
votes
2answers
42 views

How can I use the animation transitions?

So I want to make my animation transitions smooth, thats why I made transitions on the animator, but how can I activate them if I use trigger paramaters??? Heres the code: ...
0
votes
1answer
89 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 ...
0
votes
1answer
25 views

Trying to add my model's animation to the animator in Unity but it doesn't work?

I made an animation for a model in blender, then saved and imported it into Unity. In the preview, I can see the animation playing, but when I try to click on 'loop time' or to drag it over to the ...
1
vote
0answers
15 views

Set specific animator-state as more important

I have a animator with 3 states: KnifeWalk KnifeIdle KnifeAttack The KnifeAttack state should be run, whenever the bool "Attack" is set to true. This always ...
1
vote
1answer
1k 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
2answers
3k views

UNITY || How to access the "exit transitions" of the current played clip from the animator?

So, I have an animator , i can access it. But from there I have no idea how to access the clips inside. I need to access the transition of the clips. I got as far as accessing the object of the "...