Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Need help with part of animation disappearing (No one seems to know why!)

Discussion in 'Animation' started by Maxske, Aug 19, 2015.

  1. Maxske

    Maxske

    Joined:
    Feb 20, 2015
    Posts:
    37
    Set Up: I am making a survival game and in my game, i have a character that has several animations so far. There is an idle animation, a punch animation, a run animation, swimming animations, all with bare hands. In my game, you can build stuff like an axe for chopping trees so i made 3 new axe animation, one for holding the axe, one for swinging, and one for walking/running. I made these animations in blender. I used a makehuman model and keyframed the motions and also keyframed the axe to the hand in blender.(I know i can make the axe a bone and attach it to the hand in blender but im not a blender pro and makehuman models are differentish). But anyway, all these animation work fine.

    Problem: The problem is, when i attach my new axe animations to my character, the animation plays but it is missing the axe. If i just put the animated piece into my scene, the animation plays with the axe. You will see in the pictures that when my character uses the animation, the axe is gone but if the animation is by itsself in the scene, the axe is there. 030924e8b95b3dc65513658b5ad74982.png b4ee4dc9a82f277993bfdd19353bc4d8.jpg
     
  2. AaronC

    AaronC

    Joined:
    Mar 6, 2006
    Posts:
    3,552
    It could be that because the transform center is offscreen, Unity thinks it should be culled. This is very likely if the axe is in attached to a "skinned mesh renderer". Check this component, and enable the "Update when offscreen" checkbox.
     
    theANMATOR2b likes this.
  3. Maxske

    Maxske

    Joined:
    Feb 20, 2015
    Posts:
    37
    Where do i do that exactly cause i cant find it!
     
  4. AaronC

    AaronC

    Joined:
    Mar 6, 2006
    Posts:
    3,552
    it will be on the "Mesh" part of your model hieracy. Assuming you have used bones in your Axe file somewhere.