Questions tagged [animator]

The tag has no usage guidance.

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

Animation works well on preview but not when hitting play

I'm using a simple animation where I want to move an sprite just a little bit bellow its current position, and this works well on preview mode in the Animation tab. But as soon as I hit play, the ...
0
votes
0answers
38 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
20 views

A question about animations

I'm working on a 2D RPG in Unity. For the battle system I'm planning a fully fleged and incredibly flexible / powerful battle system. One of the questions I have is in handling animations. There's ...
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
0answers
11 views

Can I set multiple animations to run at the same time with Unity's animator (some animated properties would overlap)

I am creating a vehicle in Unity and I am currently trying to set up lights for it. I need to be able to press one button to turn on the parking lights. But the parking lights share the same bulb as ...
0
votes
1answer
46 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
27 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
0answers
23 views

Animator prevents swapping spriteRenderer source sprites at runtime

Background: Unity 2019.3. I'm using an animator component on a parent gameObject to play animations involving multiple body part gameObjects with individual spriteRenderers (see below). ...
0
votes
0answers
23 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
23 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
14 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
0answers
24 views

Inheritance script works with one enemy, but not the other enemy for some reason

So I have created an inheritance script so that every enemy can have the same death properties, which are playing a death animation, then destroy itself. So I have one enemy that works, but the other ...
0
votes
0answers
26 views

Enemy does not switch to jumping and falling animation, and stays in idle the whole time

So I want my enemy to switch to jumping animation after it finishes its idle animation. So I named my movement script: void movement(), and create an event that references movement() at the end of the ...
0
votes
0answers
28 views

Unity: Run several Animations simultaneously on the same Object

Using Unity & Blender 2.79 the task is to animate a Dropship Helicopter. The dropship lands, opens its hangar door, troops come out, door closes, dropship flies away, simple. Cannot be shot down ...
0
votes
0answers
23 views

How to animate two or more unrelated properties on a sprite GameObject using animation layers?

I have a sprite in Unity 2019.3. It is animated like so (with provided mockups): Its base animation is just one frame; i.e. it has the same Sprite whether idle or ...
0
votes
0answers
10 views

Animation Parameters (To use later as prefab in any place in canvas)

Am using Unity3D 2019 and I'm creating a 2D WorkFlow Systems, so I found like solution to create pipeline liquid animation is the use of two Images objects first one used like a mask for the second ...
0
votes
1answer
36 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
0answers
24 views

Problem with an animation transition

I'm working with a 3D avatar and it's my first time working with animations. I have already done one which goes from the idle animation to another animation. It does the transition when the value of a ...
0
votes
1answer
32 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
111 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
11 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
50 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
375 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
40 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
77 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
38 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
30 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
0answers
29 views

I can create a keyframe in Unity Animator but it wont save the new position!

I have been searching for a solution to this for literally hours. As you can see, I haven't found one so I'm posting here. I'm relatively new to Unity, and I'm using the Animator Window to create an ...
0
votes
1answer
44 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
13 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
434 views

Unity animation plays in preview but not in playing mode

I create a simple animation and an override controller for it with code. ...
-1
votes
2answers
890 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 "...