Search Unity

Hide object's limb. How?

Discussion in 'Editor & General Support' started by GantZ_Yaka, Apr 26, 2013.

  1. GantZ_Yaka

    GantZ_Yaka

    Joined:
    Apr 26, 2013
    Posts:
    10
    Hello from russia! I'm new to Unity and I have a problem with a game. Sorry my english :)
    I have 1 character with 1 animated biped. How can I hide his head or arm at some time and show it at another time (without detaching animated biped) during the game?
     
  2. GantZ_Yaka

    GantZ_Yaka

    Joined:
    Apr 26, 2013
    Posts:
    10
    I tried to hide object limb by hiding his sub-material.
    why?
    other.renderer.sharedMaterial = Ivisible; work!
    and
    other.renderer.sharedMaterials[0] = Ivisible; doesnt work!