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.

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!!!