Problems with animations in Unity

Hello!!!

I’m working with a game project and troubleshooting I could find me at the time of making the first stage of the game. This is an interior scenery where we take elements inside which will then be necessary. There will be a library with drawers I can open and close to pick up some elements inside in.

I followed this tutorial

but there was no way to be able to run the animations. I tried several times creating animations from blender but I have worked correctly (with and without bones). Then I tried to create animations in Unity movement of the drawers, but I do not work.

The console emits the right messages enter, exit and up but not play the animations. Took several days watching tutorials and trying out different ways but nothing, so you should not get out.

Could anyone know what could be the problem? Has anyone tried doing animations in Blender and have worked well?

Thanks!!!

The thing with animations is you need to set wrapmode and such correctly. Importing from a .FBX file from blender works well for me.

Also search the forum - this question comes up like once a week. There are already many, many troubleshooting tips.

Hi Loius,

I tried to import from a .fbx and don’t function.

I tried creating a new file with two animations (CubeAction and CubeAction2). When I import from .blend the animation works correctly, but only creates in Unity a Default Take Animation, not appears all the animations I created, only is playing the animation was selected in Blender when I save the file.

Solved!!!

I try to make this animation with a bones, import the .blend file and functions correctly. :slight_smile:

When I apply a Box collider, an script and the animations to de element “library” (as in the attached tutorial) functions correctly for the animated drawer. I try to apply this for the drawer object (not library) and doesn’t function. I solved if I adjust the size of box collider to the one drawer I can control the script for that drawer.

I will investigate how I can work for each drawer has its own animation. Any ideas?

Thanks!!

This is my solution:

  • I created a 5 .blend files: 1 for the armature of library and 4 drawers with the same animations.
  • Import into Unity and create a GameObject with all elements.
  • Create box collider, add script and animations for each drawer.

This function correctly.