コード例 #1
0
        void _fullWristControl_BoneHideChanged(object sender, BoneHideChangeEventArgs e)
        {
            if (_bones[e.BoneIndex] == null)
            {
                return;
            }

            if (e.BoneHidden)
            {
                _bones[e.BoneIndex].reference();
                _root.removeChild(_bones[e.BoneIndex]);
            }
            else
            {
                _root.addChild(_bones[e.BoneIndex]);
                _bones[e.BoneIndex].unref();
            }
        }
コード例 #2
0
        void _fullWristControl_BoneHideChanged(object sender, BoneHideChangeEventArgs e)
        {
            if (_bones[e.BoneIndex] == null)
            {
                return;
            }

            if (e.BoneHidden)
            {
                _bones[e.BoneIndex].reference();
                _root.removeChild(_bones[e.BoneIndex]);
            }
            else
            {
                //have to add child to beginning, otherwise rendering order is screwed up
                //point clouds need to be rendered first
                _root.addChildToBeginning(_bones[e.BoneIndex]);
                _bones[e.BoneIndex].unref();
            }
        }
コード例 #3
0
 void _wristControl_BoneHideChanged(object sender, BoneHideChangeEventArgs e)
 {
     _bones[e.BoneIndex].setVisibility(!e.BoneHidden);
 }
コード例 #4
0
 void _control_BoneHideChanged(object sender, BoneHideChangeEventArgs e)
 {
     _fullXromm.Bones[e.BoneIndex].SetBoneVisibilityManually(!e.BoneHidden);
 }
コード例 #5
0
 void _wristControl_ShowHamChanged(object sender, BoneHideChangeEventArgs e)
 {
     _fullWrist.Bones[e.BoneIndex].SetHamVisibility(!e.BoneHidden);
 }