Questions tagged [mecanim]

The tag has no usage guidance.

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

How to stop animation state normalized time to go beyond 1

I want the animation state normalized time not to go beyond 1 when it is not looped. I initially thought that it shouldn't do it anyway but the longer the animator stays in that state, normalized time ...
user avatar
  • 13
1 vote
1 answer
110 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 ...
user avatar
0 votes
1 answer
371 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 ...
user avatar
  • 161
0 votes
1 answer
41 views

Gun clipping through arm during third-person animation

I have been setting up a Blend Tree for motion animation in Unity. I'm using Root Motion for now. I parented the gun to the root of the player and then I use ...
user avatar
1 vote
1 answer
144 views

How do I include a blend tree in my controller?

I want my player to aim up and down with a pistol. I have stored an "aim up" pose in one anim file, and I have stored an "aim down" pose in another anim file. I want to blend ...
user avatar
  • 819
0 votes
0 answers
50 views

Help with Chase AI? (Similar to Blue Demon)

all! I'm working on a chase ai / follow player script, for a 2D project of mine, I'm going for something similar to Blue Demon where an integer value controls what enemy is on screen, and can be ...
user avatar
1 vote
1 answer
59 views

How do I restart an animation that is already playing using SetTrigger?

I have set up a relatively simple example scene with one enemy. This enemy is controlled with an animation controller. In this animation controller, I have set up a trigger named "Hit". The enemy ...
user avatar
  • 819
1 vote
1 answer
1k views

How to play two 2D animations at the same time?

I have a "burn" animation and a "poison" animation for when the player is burnt or poisoned respectively. I want to play both animations at the same time when the player is both burnt and poisoned. ...
user avatar
0 votes
0 answers
31 views

Unity3D: Rotating the head and an animation gets clashed

A rigged generic models head keeps rotating to follow the camera. When there is an animation like shaking the head, the head animates weirdly as compared to without rotation. Is there anyway to fix it?...
user avatar
  • 311
6 votes
2 answers
8k views

Reasons to not use Root Motion

Engine: Unity 3D tool: Blender Since the start of my game dev endeavour, I can't seem to decide on the type of animation system I want to use. Can someone please give me reasons why you would NOT ...
user avatar
  • 113
1 vote
1 answer
293 views

Unity2D: Avoid attack animation looping during combo

I am trying to implement a combo system in my Unity project. I started with a coroutine to call a single attack and it goes relatively smoothly, the problem occurs when I try to modify said coroutine ...
user avatar
  • 176
0 votes
2 answers
267 views

Unity using raw mocap data without actually moving the character

I play around with animations and unitys raw motion capture data asset pack. My problem is as followed: I have an idle, walkforward and a runforward animation and play them based on the keyboard ...
user avatar
  • 75
1 vote
1 answer
232 views

Animations in Unity are not working properly

I've done a few animations in Blender for my 3D character but the problem is, that they look different in Unity. It seems like the eyes are moving too much. I tried to change many things in import ...
user avatar
7 votes
1 answer
101 views

How to prepare a rigged character model to be imported as a humanoid in unity?

I want to import a character as a humanoid to be able to use masks on animation system. I used proper human structure but unity gives some errors when I want to turn it from generic to humanoid and ...
user avatar
  • 2,458
1 vote
0 answers
140 views

Different animations depending on multiple factors on Unity mechanim animator

I have a character that can carry a single-handed weapon, a two-handed weapon or no weapons at all (weapon hold type int parameter) with a boolean if aiming or weapon down. He can remain idle, he can ...
user avatar
1 vote
1 answer
2k views

Manipulating an animation towards a target object (ie. The hand and arm lean towards the target)

I am trying to make a boxing game just for fun (I dont expect the end product to be anything decent lol) . I have my boxers in the ring and they are animated quite well so far, with Idle, and punch ...
user avatar
0 votes
1 answer
466 views

Iterating through all animator layers in Unity Mecanim

I'm aware of how SetAnimatorLayerWeight works, I'm looking for a way to iterate through all layers of my controller at runtime. I've four layers and expect more, and need to update them at once, in ...
user avatar
  • 81
2 votes
1 answer
746 views

What is the difference between body transform and root transform

I am learning about Root animation and here come two terms, one is root transform and Body transform. As name suggests that body transform is the character body but what is root transform? and what is ...
user avatar
1 vote
0 answers
25 views

Control the Transform component of an object while the animation is playing

It seems the the animation controls the Transform component of the gameobject, hence making it not possible to control the transform properties while the animation is playing. Is there any way to ...
user avatar
  • 1,819
1 vote
2 answers
4k views

How to make a delay between animations in mecanim?

How to make a delay between animations in mecanim? For example after anim1 ends then there will be a delay then anim2 starts. I tried to increase the exit time but it doesnt work.
user avatar
  • 1,819
0 votes
1 answer
1k views

Make an animation repeat X times

I am using Unity Mecanim and I would like an animation ( walking animation about 2 seconds longs ) to repeat X times before moving to the next animation. How can I achieve this?
user avatar
  • 1,819
0 votes
2 answers
978 views

Animator get number of animations (Unity)

In C#, how would I get the number of animations in an Animator Controller? So I want to find out how many animations there are in an Animator Controller, and have this number in script. Thanks in ...
user avatar
  • 1,217
0 votes
2 answers
6k views

Parabolic movement of a gameObject in Unity

Currently I'm working on a 3D game. In this game my player is a ball and it can jump from tile to tile. The movement of the ball is 45 degrees left or right when it jumps. I want to make it jump in a ...
user avatar
2 votes
1 answer
178 views

How can I make Maya or Blender model work with mecanim?

I'm working on a simple game project, where I need a stick figure. Due to being stubborn and the desire to learn a new skill, I want to make the stick figure myself! I have followed several tutorials ...
user avatar
  • 123
0 votes
0 answers
170 views

Rect Position doesn't reset if animation is canceled

I have a text component that displays a text with an animation. If I disable the GameObject while the animation is running, the Rect Transform doesn't reset to the original position, which makes the ...
user avatar
0 votes
2 answers
1k views

Setting up sequential animation clips in Unity

I'm trying to play two animation clips sequentially using Unity 2D. I've been using Mecanim for this so I've imported the two clips in a newly created controller and connected the first one to the ...
user avatar
  • 341
0 votes
0 answers
178 views

Animation with pivot-modification in Mecanim

Assume I have two animation cycles: Walking Crouching Both assume that the model's pivot is on the same level as the model's feet. Now I also have two animated transitions: Get on all fours while ...
user avatar
1 vote
0 answers
30 views

How to add (not blend) non-looped animation clip to looped animation with Mecanim?

I have a GameObject with Animator and looped animation clip. This animation changes X coordinate from 0 to 10 and back. I need to add another animation to the first one that increases GameObject's ...
user avatar
  • 605
1 vote
0 answers
94 views

Applying Animation to specific parts of a humanoid model

I have imported a humanoid character from AutoDesk Character Generator into Unity. Once you specify that you want the character for Unity, a humanoid skeleton in integrated, in order to use MecAnim. ...
user avatar
  • 236
2 votes
0 answers
460 views

using IK functions in MecAnim

The documentation on how to use IK functions clearly states that an Animator Controller with at least one animation for the character is required and then Layers ...
user avatar
  • 236
3 votes
1 answer
678 views

Jumping onto higher ground Collider issues

What's the general solution to the following character animation problem (I'm using Unity)? You have a character with a capsule collider and a jump animation that allows you to jump onto higher ...
user avatar
1 vote
0 answers
224 views

Unity Animator/Collider Default Property Issues

How do you use Unity's Animator when dealing with animation curve values that have a default value and the default value causes jumps in animation transitions? I have a bit of a complex problem with ...
user avatar
2 votes
0 answers
133 views

Proper setup for Mecanim standing jump animation

I have a character standing jump animation with that the character at start prepares for the jump (flexing downwards) and then jumps up in the air and i'm wondering how to get it working properly with ...
user avatar
0 votes
1 answer
295 views

Changing the duration of motion state transitions in Animator Controller

Anyone around who is experienced with Unity animation states and the Animation Controller? I wonder is it possible in Unity to change the duration of time it takes between motion transitions in the ...
user avatar
1 vote
1 answer
471 views

Unity Animated Player Character Rotation Glitch

I was wondering if anyone experienced this issue in Unity with Mecanim-animated characters ... I have an animated player character with a third-person camera control (Game Camera from the asset store,...
user avatar
3 votes
1 answer
6k views

Combining several animations into a single FBX

I'm trying to figure out a workflow for preparing character animations for Unity so that they are all combined in a single FBX file. The advantage as far as I see it is that it then uses only a single ...
user avatar
1 vote
0 answers
59 views

gazing and lip syncing in Unity 5.2

Is it possible to achieve gazing or lip syncing in Unity 5.2 at all, similar to Locomotion done through MecAnim?
user avatar
  • 236
3 votes
2 answers
3k views

Move collider along with model with Mecanim jump animation

I've been creating an infinite runner game in Unity3D for a while and I got stuck in this point that whenever my character jumps using Mecanim system his model (mesh) goes to air but his attached ...
user avatar
  • 191
0 votes
1 answer
173 views

Unity 5.2 --- Animator window / tab

I have downloaded the latest Unity 5.2.0f3 so I wondered if it is just me or others are having a similar problem: When I double-click on an ...
user avatar
  • 236
0 votes
1 answer
264 views

Why are my Mecanim animation curves not staying within the entered range?

I have an in-place animation that I added curves to (In the rigged FBX which has the animation). I created 2 float parameters in the relevant controller with the same names as the curves in the ...
user avatar
1 vote
0 answers
2k views

The animation state could not be played because it couldn't be found!

If I try to use animation.Play() or have Play automatically ticked in the inspector on the animtion object, it gives me the follwing error: The animation state could not be played because it couldn't ...
user avatar
1 vote
2 answers
93 views

Animation impulse system?

I'm working on an animation system for an RTS game. Each unit has several animation states: Move, Idle, Engaging, etc.. Units also have a variety of "Animation Impulses" which are animations that get ...
user avatar
  • 2,041
1 vote
0 answers
210 views

How to blend motions with Mecanim

I'm struggling with Mecanim. My concern is to blend straight/turning animations with strafe animation for a humanoid character. I downloaded a SampleAsset from unity and took Ethan character as ...
user avatar
  • 1,444
3 votes
1 answer
7k views

Changing animation speed at runtime

Is there a way in Unity to change the animation speed of an animation managed by an animator controller (Mecanim)? I'd like to do that at runtime so that I can speedup and slow down an animation ...
user avatar
0 votes
1 answer
300 views

Importing .anim files created using the Unity Animation controls

Our artist created some .anim files using the built-in Unity Mecanim system (where you use keyframes and drag various body parts to construct the animation). However, now we're trying to export them ...
user avatar
  • 163
1 vote
1 answer
285 views

How can I have a Mecanim animation with displacement and physics?

I have 3D wolf models from my animator with displacement (i.e the wolf transforms with animation, not in-place). I have added rigid bodies to the models. I am facing following issues while executing ...
user avatar
2 votes
1 answer
13k views

Method Animator.SetBool sometimes is not working (or not triggering) in Unity2D

I have trouble with Animator in Unity2d. I have a main character for my game. The character has his own animation clip for fighting. When the player touches the screen, i am starting animation. When ...
user avatar
  • 259
3 votes
1 answer
3k views

How should I set up 2D animations for weapons in Unity?

I have a character composed of several sprites (legs, torso, head, arms). The character has the ability to pick up weapons, which are of varied types. Each type of weapon has its own animation (...
user avatar
1 vote
0 answers
2k views

How can I animate 2d sprite rotation without interpolation?

I would like to animate a weapon being swung in 2 frames - all I'm doing is changing the position and rotation of the weapon sprite. However, I don't want unity to interpolate the rotation (generate ...
user avatar
3 votes
1 answer
5k views

Unity-Animation parameters are not being set

I have the following animation controller: with two parameters of walkingSpeed and Jump. I have the following code which ...
user avatar