Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

How to hiding or remove bone from spine model object

Discussion in 'Animation' started by SKIEROK, Oct 8, 2013.

  1. SKIEROK

    SKIEROK

    Joined:
    Oct 8, 2013
    Posts:
    1
    I want do this when some event occurs.
    I write this code but he don't work correctly.
    He is work when the scene is closing.

    Code (csharp):
    1.  
    2. foreach(var b in tap_zaykaSkelet.state.Data.SkeletonData.Bones){       
    3.             if(b.Name=="znL_ab"){
    4.                b.BoneData.ScaleX=0;
    5.                b.BoneData.ScaleY=0;
    6.             }
    7.  



    Thanks for answer!!!