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. Voting for the Unity Awards are OPEN! We’re looking to celebrate creators across games, industry, film, and many more categories. Cast your vote now for all categories
    Dismiss Notice
  3. Dismiss Notice

armours disappear from gameview.why???

Discussion in 'Scripting' started by unity992, Mar 22, 2018.

  1. unity992

    unity992

    Joined:
    Jan 24, 2018
    Posts:
    44
    hi.im following brackeys rpq tutorial on youtube.i have not completed the series but im facing some issues.
    my player is able to equip all the armour and it works fine.but when i make him run or i rotate the camera view,all the armours start to disappear from the game view.the armour will appear again after a while.so basically the armour keeps disappearing and appearing again.i dont know whether it is a script problem or what.if u need to see the script i will show you.i have attached pictures below
     

    Attached Files:

    Last edited: Mar 22, 2018
  2. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    8,956
    can you link that part of the tutorial video? (where he is building/setting up the armour)
     
  3. unity992

    unity992

    Joined:
    Jan 24, 2018
    Posts:
    44
    here!thankyou.im currently stuck at 8min of this video because of this issue.
     
  4. dgoyette

    dgoyette

    Joined:
    Jul 1, 2016
    Posts:
    4,113
    This seems like a long-shot, but do any of your Animators have Culling Mode set to something other than Always Animate? For example:

    upload_2018-3-21_22-34-43.png

    It's just a guess, but I've had issues where stuff "disappeared" under normal gameplay due to animation culling.
     
  5. dgoyette

    dgoyette

    Joined:
    Jul 1, 2016
    Posts:
    4,113
    Maybe not a longshot. At 1:25 in the video, the author has a culling mode specified on the animator. Maybe there's a bug in more recent versions of Unity where culling is too aggressive? Anyway, changing the Culling Mode on "player graphic"s Animator to Always Animate and see if that helps.
     
  6. unity992

    unity992

    Joined:
    Jan 24, 2018
    Posts:
    44
    i change it to Always Animate but the issue still occur :(
     
  7. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    8,956
    if you check in scene view, while its playing, where do the armour meshes go? (or they still follow, but just now drawing?)
     
  8. unity992

    unity992

    Joined:
    Jan 24, 2018
    Posts:
    44
    U mean whether i could see the armour meshes in the scene view?the armour also disappears when my player is running in the scene view
     
  9. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    8,956
    i mean, should be able to see the armor gameobject there (even if skinmesh is invisible), probably under the body/ in hierarchy
     
  10. unity992

    unity992

    Joined:
    Jan 24, 2018
    Posts:
    44
    All the armor are equipped.it is shown in the equipment slots that i have made in the game manager.
     
  11. unity992

    unity992

    Joined:
    Jan 24, 2018
    Posts:
    44
    i have found solution to my problem.i found it while googling it.
    i need to check "update when offscreen" in the skinnedmeshrenderer component in the inspector.
    i dont know what it does to my player but it is working fine now thankyou all..
     
  12. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    8,956
    nice, although sounds like a unity bug then..