private void GhostEditFingers() { HandPuppet puppet = _handGhost.GetComponent <HandPuppet>(); if (puppet != null && puppet.JointMaps != null) { DrawBonesRotator(puppet.JointMaps); } }
public void OnSceneGUI() { HandGhost ghost = (target as HandGhost); HandPuppet puppet = ghost.GetComponent <HandPuppet>(); if (puppet?.Bones != null) { DrawBonesRotator(puppet.Bones, puppet); } }
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>(); }