Ejemplo n.º 1
0
        private void GhostEditFingers()
        {
            HandPuppet puppet = _handGhost.GetComponent <HandPuppet>();

            if (puppet != null && puppet.JointMaps != null)
            {
                DrawBonesRotator(puppet.JointMaps);
            }
        }
Ejemplo n.º 2
0
        public void OnSceneGUI()
        {
            HandGhost  ghost  = (target as HandGhost);
            HandPuppet puppet = ghost.GetComponent <HandPuppet>();

            if (puppet?.Bones != null)
            {
                DrawBonesRotator(puppet.Bones, puppet);
            }
        }
Ejemplo n.º 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>();
        }