Search Unity

  1. The 2022.1 beta is now available for testing. To find out what's new, have a look at our 2022.1 beta blog post.
    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!!!
     
unityunity