コード例 #1
0
        private void GhostEditFingers()
        {
            HandPuppet puppet = _handGhost.GetComponent <HandPuppet>();

            if (puppet != null && puppet.JointMaps != null)
            {
                DrawBonesRotator(puppet.JointMaps);
            }
        }
コード例 #2
0
        public void OnSceneGUI()
        {
            HandGhost  ghost  = (target as HandGhost);
            HandPuppet puppet = ghost.GetComponent <HandPuppet>();

            if (puppet?.Bones != null)
            {
                DrawBonesRotator(puppet.Bones, puppet);
            }
        }
コード例 #3
0
        private void CreateGhost()
        {
            if (_ghostVisualsProvider == null)
            {
                return;
            }

            HandGhost ghostPrototype = _ghostVisualsProvider.GetHand(_handGrabPoint.HandPose.Handedness);

            _handGhost = GameObject.Instantiate(ghostPrototype, _handGrabPoint.transform);
            _handGhost.gameObject.hideFlags = HideFlags.HideAndDontSave;
            _handGhost.SetPose(_handGrabPoint);
            _ghostPuppet = _handGhost.GetComponent <HandPuppet>();
        }