Jump to content

Animation Help!


LaydeeDem

Recommended Posts

I am currently making a part for the game that has some animation. The animation is perfect in unity, but it only shows up in the game when I tick the 'play automatically' in Unity. I currently have it as a LandingGear part type. It shows up fine, loads fine, but the animation doesn\'t work when I press G. Is there a fix to this?

Link to comment
Share on other sites

The animated version of the landinggear must be named 'HLandingGear' not just landing gear

you\'ll also need to name the animation 'Retract' and set the 1st and last frame; to do that click on your imported object in the project, scroll down to the box where you can click 'split' animation. Click the + sign and it adds one animation named idle; click on the name and rename it to Retract. then set the 1st and last frame to whatever they are in your 3d software (Mine was 1 to 72) and click apply. Should work when you hit G now. :)

And you\'ll want 'automatically play' to be off

(If you can\'t tell, I have been wrestling with Unity the past few days :P)

Link to comment
Share on other sites

The animated version of the landinggear must be named 'HLandingGear' not just landing gear

you\'ll also need to name the animation 'Retract' and set the 1st and last frame; to do that click on your imported object in the project, scroll down to the box where you can click 'split' animation. Click the + sign and it adds one animation named idle; click on the name and rename it to Retract. then set the 1st and last frame to whatever they are in your 3d software (Mine was 1 to 72) and click apply. Should work when you hit G now. :)

And you\'ll want 'automatically play' to be off

(If you can\'t tell, I have been wrestling with Unity the past few days :P)

I did what you said and hitting G actually works now, but the animation still won\'t play. I have it as an HLandingLeg right now in the CFG file, I tried HLandingGear but that just made it grey out in the editor. (Part type doesn\'t exist.)

Link to comment
Share on other sites

I am confused about that... cannot the animation be done directly in Unity ?

I work with 3DS Max, and importing a simple and plain object in Unity is already a nightmare (objects appears rotated, scaled, collision boxes are off, etc...) so I believe that importing an animation could be even more difficult. If animations could be made in Unity, that would avoid this problem.

Maraz

Link to comment
Share on other sites

Well I am by no means an expert in the Unity editor, but I do not believe so.

Its odd that your model was messed up on importing, were you importing the .max file directly? (Unity can handle it just fine, no need to export to DAE or whatever) - I import my .blend files directly and they\'re exactly as expected.

Link to comment
Share on other sites

Well I am by no means an expert in the Unity editor, but I do not believe so.

Its odd that your model was messed up on importing, were you importing the .max file directly?

Yes. Probably that has to do with the fact that MAX uses a different orientation (Z-up) than Unity. Also Unity likes importing my MAX files with scale 0.01 (but I understood how to correct that).

Bye

Maraz

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...