Skip to main content

All Questions

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

Unity Randomized Animation is synchronized across all prefab instances

As per title, I am randomizing animation using the following script: private IEnumerator RandomizeAnimation() { while (true) { var rand = Random.Range(0, 100); switch (rand) ...
Krzysztof's user avatar
0 votes
0 answers
41 views

Unable to copy unity animation properties from one file to another

I have a character model with 50 animation, all of them will have same properties Like Root Transform Rotation, Root Transform Position (Y), Root Transform Position (XZ), but i can not see any option ...
Jayant Barthwal's user avatar
2 votes
1 answer
127 views

How to disable animation after SetActive(true) in Unity?

I have an animated UI obj (A button) that plays the animation (is switching sprites, between sprite1 and sprite2) after a certain condition, after the button is pressed the sprite of the button ...
Chris der Hov's user avatar
1 vote
2 answers
142 views

Animating a GameObject with Nav Mesh Agent with idle animation - Unity 3d

I have a Unity Assets store imported GameObject named Zombie1 with a Nav Mesh Agent component set and a Animator component (screenshot: ), and a animation named Z_Idle. I would like to implement the ...
codertocode's user avatar
1 vote
0 answers
39 views

My game wont acknowledge my animator and is giving me no errors

In unity when I have it made so when my camera collider interacts with an object I get the option and ability to interact with it. I already set up the animator and put a trigger called press. When I ...
Karim Elhusseiny's user avatar
0 votes
0 answers
63 views

Animation using a blend tree, 2D Simple Directional not using the correct animation

Why does this deer not switch to its 'Deer Move-Left' animation until the value is at 1. From my understanding, I would think it would switch over right when the value goes from 0 to -0.01.
Jesse Moreland's user avatar
-2 votes
1 answer
128 views

Animation has no reference

guys when i'm starting game everything's fine but when am trying to move my game stopping and causing errors animation footL run-forward-right run-forward-left has no receiver! are you missing ...
Ragnärok's user avatar
0 votes
0 answers
38 views

Animation is lagging and stopping

It's a 2D platformer game. Animations transitions were set up in the Animator window, but unfortunately, when the player encounters an obstacle, the animation stops. What could be the reason? There is ...
user avatar
1 vote
1 answer
133 views

Animation not working in scene and game but works in asset bundle

The animation works in the asset bundle It won't work on my game object I tried open ai and videos and youtube and unity forums and stackoverflow and they don't give me a single answer. I want the ...
BRO Animations's user avatar
-2 votes
1 answer
842 views

How to stop playing the first animation and start the second one (Unity)

I have two animations. Punch animation and kick animation. I set up an Animator to transition between animations. If the first animation is playing, I want to interrupt it and start playing the second ...
Operator's user avatar
0 votes
1 answer
66 views

Unity: Triggering Parent Animation using OnTriggerEnter2D

this is my first time of positing on any forum, so here goes... I am making my own Unity 2D game. However, I am really stumped with triggering an animation and I have been trying for a long time to ...
Myerpheus's user avatar
3 votes
1 answer
2k views

How Reset Unity Animator And Animation Clip?

I'm working on 2D game in unity and the game has several animation clip like : Idle, Idle Stomach, Figure and etc. Also I have two section in my scene: 1- home 2-character My default animation is &...
Ghadim Alehsan's user avatar
0 votes
1 answer
663 views

How to add the animations in my script in unity "C#"?

I'm new to C#, I'm making a game to learn. Can anyone help me, I found some scripts on the web for my player. I tried to make animations for it and I used the "Bool", but sometimes when the ...
João Carlos P.P.'s user avatar
2 votes
0 answers
162 views

Change position of animations in specific states

I’m currently trying to figure out how to change the position of an animation in a state. I have a GameObject with a SpriteRenderer attached to the scene. The object also has an AnimationController. ...
Bastian's user avatar
  • 1,593
0 votes
1 answer
1k views

localScale is not working at the runtime after applying the Animator component

I apply an animator component to my Game Object. After that when I play the game, I try to change the localScale of the game object but it doesn't work. Here is my code to change the game object's ...
draxex's user avatar
  • 79
0 votes
3 answers
4k views

Unity Animator, how can I delete the default transmission?

How can I delete the orange arrow? If I delete the orange block, the arrow comes to another block!
Anonymous's user avatar
1 vote
0 answers
141 views

How to toggle on off animation in desired position

I'm creating my first unity game for learning how it works. the game: a player needs to avoid monsters by jumping over them. if it collides with a monster, the player dies and a stone thumb animation ...
Kukula Mula's user avatar
  • 1,869
1 vote
0 answers
532 views

Unity animator exit time lags the next state of the animator

I am trying to make a game where the player moves around as a knight and can kill his enemies with his sword. I have begun working on the animations, but something isn't working quite right now. I ...
Daniel Antonian's user avatar
3 votes
1 answer
1k views

Bug in the Unity Animator Inspector. Can't see any the values

I can't see anything in Animator Inspector: How to fix it?
Gteddy's user avatar
  • 31
1 vote
1 answer
1k views

Unity Animator component unnecessarily overriding scripted position of Game Objects

I have a hand and pistol(fps) gameObject. and the recoil system is controlled directly from script (including the slide on the pistol) and it works perfectly. the moment I added an idle and reload ...
Aje Damilola's user avatar
0 votes
1 answer
95 views

Character will not move, only the scene moves

In Unity 2020.3.25 in 3d Mode, I have the Animator named Soldier where he is supposed to transition form Idle to Walk when you either press the arrow keys or certain letter keys. In Edit then Project ...
Col_Ripley's user avatar
0 votes
1 answer
1k views

How to increase animation play speed through Animator without repeating the animation in Unity

First of all I'm trying to start an animation one time per 10 seconds. So I setted transition duration to 10 seconds and it worked. The animation was run only one time in 10 seconds. But also the ...
Alexander  Tukanov's user avatar
0 votes
1 answer
17 views

Model not animated even if animator fed correct data

Short question! Have an Animator, thats being fed data. Debug.Loged it and it's getting the values correctly, even in realtime, while in game, the data is being passed. Got a riged guy, animations set ...
BlackBird's user avatar
0 votes
1 answer
3k views

My character is sliding, not playing animation (Unity3d, Animator, Blend Tree, Animation)

Advanced sorry for bad english, My humanoid character is sliding, not playing animation, on it. Even animation plus character both are humanoid. In inspector animation works fine on character, but ...
Farhan Ali's user avatar
2 votes
2 answers
2k views

Why animation with rotation can break my in-game object rotations?

I'm new to Unity. I'm trying to create a planet model with some random plants in it. I use empty game object as a parent to spawn plant with random sprite when the game start. I also added a scipt to ...
Kon's user avatar
  • 67
0 votes
0 answers
487 views

Unity: Get joint rotations of each frame from FBX file

I have some animations stored in FBX files that I need to analyse. I need to know the localRotations and localPositions of each joint for each frame. My current approach is to use Unity and assign the ...
Simon Hessner's user avatar
0 votes
1 answer
617 views

Coroutine completely freezes Unity 2020.3

I'm making a first-person game and am having trouble animating my character. I have the right animations in place. I need to find a way to make the game detect when the player has just landed on the ...
Tsubodai's user avatar
1 vote
1 answer
1k views

Unity - Animator Controller - Store previous state

I have a locker with 4 drawers. Every drawer is an individual object. Every drawer has its own animation for opening it. I have a problem with transition. If I open the first drawer and then open the ...
Domagoj Hamzic's user avatar
1 vote
0 answers
93 views

My player idle animation is playing but I cant see it when testing the game

So I separately imported the player mesh and the animation from blender. Everything is the same except, if I exported the character(mesh) again with the animation (I exported the animation only ...
Alec's user avatar
  • 73
1 vote
0 answers
140 views

Unity Animator doesnt show what animation is active now

I thought that in this window I supposed to be able to see a bar that shows what animation is currently been played but It doesn't appear and I don´t know why. help Image about the problem
Mauro Alejandro DAgostini Bez's user avatar
2 votes
1 answer
4k views

Unity: Animation won't play on trigger

Im having trouble to let Unity play my animations. I gave my character an Animator. In this Animator I have this Animations: The trigger between these Animations are working fine and are running ...
Unitynoob's user avatar
2 votes
0 answers
106 views

Unity 3D Camera wont turn horizontally after adding empty animation

I made an Empty child that contains my whole Character. Including the Body and the Maincamera. I want him to do a simple animation. I cant move the camera out of the child because it has to follow the ...
RetroAnt's user avatar
0 votes
0 answers
480 views

Unity Animation OnStateExit doesn't work when i add conditions

I am trying to get OnStateExit when animation is finished.Actually it is working but without conditions. I am triggering to start other animation when drop animation finished.OnStateExit's job is ...
y3sari's user avatar
  • 13
1 vote
1 answer
525 views

Animation with Point and Click Movement [Unity2D]

I have the following blendtree to attempt an animation change depending on the direction of the movement. I have a mechanic to move the object with a mouse click with the following code: using ...
Idrawthings's user avatar
0 votes
1 answer
1k views

Unity3D Transition Condition does not work

The walk layer in the animator is here. When player is walking, it puts IsWalking true, but the animation does not start. Why? Here is transition in inspector.
Владимир's user avatar
0 votes
1 answer
53 views

Remove sudden animation change

I have the following code which works very well. I mean... pretty well. The only problem, is when the animation state switches, it's very edgy and sudden, and it doesn't look natural AT ALL. Does ...
TheMatrixAgent22's user avatar
1 vote
0 answers
223 views

Why wouldn't Unity accept my duplicated animations?

I'm running into quite a dilemma. I duplicated my animation files since I need to add an Event on one of the animations which originally are set to read only. The animations when dragged directly onto ...
David Vella's user avatar
-1 votes
1 answer
478 views

Gradually decreasing the velocity of an object through animation in Unity

I need to create 2 animations, one is of an object going from point A to point B at a constant velocity. the other is of an object starting from point A but with a gradually decreasing velocity as it ...
Ricardo Sanchez Santos's user avatar
2 votes
0 answers
5k views

"Avatar creation failed: Transform 'Hips' for human bone 'Hips' not found" when trying to choose Humanoid Rig for mocap animation FBX

I import any dance FBX from http://dancedb.eu/main/performances when I select the FBX in Project view and choose Rig--> "Humanoid" and then "Create from this model" for the Mocap FBX, I get "Avatar ...
m0a's user avatar
  • 1,005
0 votes
1 answer
656 views

How to make these Mocap Animation FBX's work with Unity?

The ones here (any of them)... http://dancedb.eu/main/performances I'm trying to figure out how to apply these FBX's to my humanoid, rigged model in Unity. When I import the FBX and toggle it open, ...
m0a's user avatar
  • 1,005
0 votes
0 answers
120 views

Animation working in animator but not in game

The attack animation says that it is running in the animator, but still does the walk animation in the game. It shows the transition and that the attack animation is running, but there is no change in ...
Matthew Bohinski's user avatar
1 vote
2 answers
74 views

How do I create this 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 ...
velaskus's user avatar
0 votes
2 answers
4k views

Active a Unity animation if certain conditions are met?

I'm developing a 2d game in Unity and I ran into a problem. When trying to create animation transitions for one of my animations for some reason Unity instantly or very quickly deactivates my ...
Maurice Bekambo's user avatar
0 votes
0 answers
76 views

Transitioning from one anim to another based on which frame the anim is in

I am using 2D sprites in a 3D environment (with Blend Trees to imply three dimenionality upon camera rotation), and my Animator for the player gameObject needs to be able to switch between several ...
user avatar
1 vote
3 answers
9k views

Unity | How to play animations that are stored in a variable (without having them in the animator)

I'm creating a 2D fighting game, where the player can choose from a number of fighters. the fighters have different attacks with different animations. the data (damage, hitbox, cast time, animation, ...
B. David's user avatar
0 votes
1 answer
50 views

Detecting collisions between two separate animations

My animations enters a state and it's collision with enemy projectiles either defends himself or gets hurt depending on what animation he is currently in. I'm trying to detect collisions with the ...
Alexhawkburr's user avatar
0 votes
1 answer
216 views

How do I have an animation always start from the same position on screen instead of the animation playing from its current position?

I'm working on a menu system but am having trouble with the animations. I need to have it so that at the start of the animation its position starts somewhere else. So if the panel has moved to the ...
Travis Jeffery's user avatar
0 votes
0 answers
615 views

Child animator doesn't play animations

We have parent and child object (both non-static), each with it's own animator (both root motion). Parent animator moves the group in world space, child animator have to change visuals under the child ...
Frix's user avatar
  • 1
0 votes
1 answer
151 views

Animator SetFloat(int 0) as Transition, now to prevent looping?

I change the value instigating the transition via SetFloat() and this works fine. The transition occurs. It is set to take about half a second, it does that, the next animation state plays to ...
Confused's user avatar
  • 6,278
0 votes
1 answer
202 views

Randomized Attack Animation RPG

First of all, I'm quite noob with animator and animation systems in unity. What I'm trying to achieve (and I was trying with Animator component) is a randomized attack only while I keep my mouse ...
Dario Rivolta's user avatar