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.

1
vote
1answer
64 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 ...
0
votes
0answers
64 views

Does character bones and rigs should be according to mecanim clip ? [Unity]

I am a beginner in unity and want to animate a character. I have purchased FPS Character animation Pack (https://assetstore.unity.com/packages/3d/animations/fps-character-animation-pack-11709) From ...
7
votes
1answer
59 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 ...
0
votes
0answers
22 views

Speed time for IK?

I was following IK tutorial on unity page. ​https://docs.unity3d.com/Manual/InverseKinematics.html​​​ Where the hand touch object and head look at it. I need to know how to add speed time for this ...
0
votes
0answers
96 views

IK rotation smoothly?

I'm using simple IK script and it works. I want to add smooth movement when character looks at target. Here is my script. ...
1
vote
0answers
42 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 ...
0
votes
0answers
10 views

Unity IK not targeting enemy?

I'm trying to make character walking by arrows and aiming at target "enemy" but the problem here that my character pointing not at enemy !! I don't know what is the problem ? It's from animation or ...
0
votes
0answers
29 views

Character not aiming at target?

I'm working on RPG game style where characters auto aiming at their enemies. I started with a demo to see how it works. I got my character and animation from Mixamo and it works fine. But when I start ...
1
vote
1answer
340 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
119 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
238 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
591 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
45 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
290 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
0answers
37 views

Animated character bobbing around instead of joints flexing

I have a skeleton avatar that has a simple Mocap animation applied to it but instead of the joints bending the skeleton bobs around "doing" doing the animation. The process in which I made this avatar ...
0
votes
2answers
2k 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
147 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
135 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
361 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
133 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
78 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
417 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
530 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
189 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
123 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
146 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
344 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
2k 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
171 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
224 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
176 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
6k 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
240 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
272 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 ...