Unity 4.0 - Mecanim Animation Tutorial

Uploaded: November 23, 2012
Views: 121956
Share Video
Expand Video

Learn how to create animated characters with the new Mecanim animation system in Unity 4.0.

Download the project folder to follow this tutorial at -

http://files.unity3d.com/will/MecanimTute.zip

Tagged with

Comments

gujianwei
gujianwei
December 31, 2012

why the SetLookAtPosition() funtion not work, the robot not look at enemy when I press the alt key??

Tomas
Tomas
January 24, 2013

So there are few bugs in that tutorial:
* Mouse Button is not hooked to Fire1, GUJIANWEI> go to PlayerSettings->Input find Fire1 axis, in Positive Button write 'mouse 0', instead of joystick button 16
* In LaserEyes.cs, lines:
Destroy(laserL);
Destroy(laserR);
are incorrect, because they're destroying LineRenderer, but should be destroying gameObjects which hold line renderer, so it should be:
Destroy(laserL.gameObject);
Destroy(laserR.gameObject);
also condition 'else if(botCtrl.lookWeight < 0.9f)' is incorrect, because if you're not shooting it's always be true, thus you'll be destroying objects every frame, I think it should be
else if(botCtrl.lookWeight < 0.9f && shot)


Cheers

Melvin
Melvin
January 25, 2013

My character wont Jump when i press space everything was properly set up... and i want to know how i can use my mecanim character with the joysticks on my android phone???

havchr
havchr
February 08, 2013

Melvin, check the names of your states, for instance that Locomotion is the same as in the tutorial video. If not, the references that are set up at the start of the script, will not be correct.

I had the same bug, because mine started with a lowercase L

SQUIRTGUN 3d
SQUIRTGUN 3d
February 08, 2013

Do you need to use Unity Pro?

MjrDeathAdder
MjrDeathAdder
February 13, 2013

I find it easier just to ignore using the project input settings all together and either using Input.GetKey(string lowercase_character) or using Input.GetKey(KeyCode.Space)

Stefan Persson
February 17, 2013

The input checking in BotControlScript of the tutorial is performed in the FixedUpdate() function which is not a good thing. You should always check input in the Update() loop as FixedUpdate will miss the event quite often... That's probably why you are experiencing the problem Melvin.

If you rename FixedUpdate() to Update() the robot will jump every time.

Sebastian
Sebastian
February 25, 2013

When trying to change the height of the capsule collider when Jumping, there is no "Curves" point to be seen. is this a Pro feature?

cameron
cameron
February 26, 2013

The video freezes constantly on me

Melvin
Melvin
February 26, 2013

well ive fixed the problem by renaming the states thx for ur answers i fixed it that way on my own tho XD but i should have read ur answers ! great !
but still can someone tell me how i use mecanim on mobile development? how do i combine it with the CameraRelativeControl prefab from the standart mobile assets??

Diego
Diego
March 02, 2013

Would be nice to have a download link for the video as well. My connection isn't great and it's taking forever to see this video! and every time I back up to review something it has to reload that part again.

spaciall
spaciall
March 05, 2013

is there script document correspond to this movie? I am not good to English,.. so if exist, it will be very helpful to me...

V
V
March 10, 2013

When trying to change the height of the capsule collider when Jumping, there is no "Curves" point to be seen. is this a Pro feature?

Nate
Nate
March 17, 2013

Curves is a pro feature. Anyone else having trouble with the camera staying behind the robot?

femtobyte
femtobyte
March 20, 2013

I tagged CamPos as MainCamera to get the camera to follow the robot.

Deiff
Deiff
March 20, 2013

The video can be downloaded from this link:

http://video.unity3d.com/4959050/7362044/2b72f7bc67cdb43986fecb609848e012/video_webm_720p/unity-40-mecanim-animation-tutorial-video.webm

If your browser plays it directly instead of downloading, you can use any download manager.

Femtobyte
Femtobyte
March 20, 2013

Inverse Kinematics (SetLookAtPosition) is also a Pro feature: http://docs.unity3d.com/Documentation/Manual/InverseKinematics.html

alex
alex
March 26, 2013

The video has some problems, after minute 24 it closes. Online and downloaded video. Is this video broken?

Altaf
Altaf
March 26, 2013

Video streaming is very slow. Should have used You tube instead.

Pavel
Pavel
April 02, 2013

Thanks for great tutorial!

GTSI
GTSI
April 05, 2013

I finally figured out how to use mecanim with mobile devices with the help of the Unity3D Asset Store, and the
Mecanim Touch Controller .




It replaces the usual AWSD keyboard and arrow key navigation for you with Touch input on mobile devices . It even works on Mac, PC, and Web Player, by using the mouse instead of touch input when no touch input is available, so you can save time and build your project and test it without having to build to the device every time you update or make a change…and you can deploy the same code to mobile devices, Mac, PC, and Unity Web Players.




Take a look at the Unity Web Player Demo
here

to see how cool this is. It uses this mecanim tutorial as the basis for the demo scene so I was able to pick up on everything right away.

Elias
April 07, 2013

Cool map, but is this virus free?

stephen
stephen
April 18, 2013

i dont have curves

AlphaH
AlphaH
April 22, 2013

Thanks for the tutorial. Everything seems to work as it should, but I have only one problem is that when I press (assigned in the script instead Alt to mouse1) my character look the enemy and the third person camera does not line up to see the enemy properly resulting an outside view of the range of the enemy

david
david
April 24, 2013

i can't find the folder

david
david
April 24, 2013

nvr mind

Haydar
Haydar
April 29, 2013

Hi, the arena (ground and big boxes) dont show when i load the file, and when I play the file, some objects drop right away as if there is no ground, can you please help me. im new in unity

Alphanumeric Freak
April 30, 2013

u don't need unity pro that's just how it looks on mac

sampath
sampath
May 02, 2013

how can i download this video.. i tried once but after downloaded it shows unsupported format error..

aidin
aidin
May 05, 2013

put download link somewhere for god sake.

Mohamad
Mohamad
May 12, 2013

When i want press Space he don't jump

ant stewart
ant stewart
May 18, 2013

So where is the running and turning control imput? i can''t see them. for example if i want to make a rocketpack on him, an stop the running anim when he is flying and going forwards.... how do i disable running due to a condition?

Add a comment...