Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [mecanim]

The tag has no usage guidance.

0
votes
1answer
38 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 ...
0
votes
0answers
12 views

Unity Animation State duplicate Trigger

I have a simple controller to open a door and close it. With a Trigger I close the door and when it is closed it has a 3-second timer to re-open It works well, but if I send the Trigger twice in a ...
0
votes
2answers
27 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 ...
1
vote
1answer
72 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 ...
7
votes
1answer
68 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 ...
1
vote
0answers
58 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 ...
1
vote
1answer
687 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 ...
0
votes
1answer
147 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 ...
1
vote
1answer
307 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 ...
1
vote
0answers
18 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 ...
0
votes
2answers
985 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.
0
votes
1answer
56 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?
0
votes
1answer
340 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 ...
0
votes
2answers
3k 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 ...
2
votes
1answer
154 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 ...
0
votes
0answers
150 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 ...
0
votes
1answer
415 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 ...
0
votes
0answers
156 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 ...
1
vote
0answers
24 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 ...
1
vote
0answers
80 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. ...
2
votes
0answers
434 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 ...
3
votes
1answer
552 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 ...
1
vote
0answers
191 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 ...
2
votes
0answers
126 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 ...
0
votes
1answer
152 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 ...
1
vote
1answer
368 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,...
3
votes
1answer
4k 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 ...
1
vote
0answers
58 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?
3
votes
2answers
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 ...
0
votes
1answer
172 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 ...
0
votes
1answer
228 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 ...
1
vote
0answers
1k 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 ...
1
vote
2answers
76 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 ...
1
vote
0answers
181 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 ...
3
votes
1answer
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 ...
0
votes
1answer
258 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 ...
1
vote
1answer
276 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 ...
2
votes
1answer
8k 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 ...
3
votes
1answer
2k 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 (...
1
vote
0answers
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 ...
3
votes
1answer
4k 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 ...
3
votes
1answer
6k views

Can animation parameters only be changed in scripts?

I have a very simple animation parameter in the Animator, a boolean that is "true" when a shooting animation is playing (to stop the game logic from allowing more shooting during a gun recoil ...
-1
votes
1answer
1k views

Animating a sprite with mecanim

I want to try animating sprites with the Unity's mecanim. All the tutorials I found used bipedal humanoids, which already have the avatar for the animator component and imported animations. What I ...
2
votes
2answers
3k views

How should I handle animation states in Mecanim?

I did a tutorial which associated an integer to each state and manually set transitions from one state to another based on that integer, but that seems really sloppy. Is there a more elegant way? I ...
2
votes
1answer
2k views

Unity 4 mecanim; 'Quaternion to Matrix conversion failed, input quaternion is invalid'

I'm trying to animate a stick figure in Unity, with placeholder animations. Character is built/animated in Blender, exported to FBX. When imported to Unity, everything appears correct in the editor. ...
1
vote
1answer
7k views

Jumping with Mecanim synchronization

I am using Unity3D 4.1 for one of my projects. I have a robot character which is always running. I am using mecanim animation system. What I really want:When I press Space bar, the character should ...
1
vote
0answers
1k views

is there a way to check if an animatorcontroller has a parameter?

With mecanim, if you try to set a parameter that doesn't exist, it logs a warning. It doesn't throw an exception or return null or anything useful like that. So if I set a parameter very often that ...
4
votes
1answer
6k views

What does Mecanim's “loop pose” parameter do?

What exactly does the loop pose parameter do? What's the difference between enabling or disabling it on animation clips?