private void AttachGhost(HandGrabPoint point) { if (_ghostProvider != null) { HandGhost ghostPrefab = _ghostProvider.GetHand(_handGrabInteractor.Hand.Handedness); HandGhost ghost = GameObject.Instantiate(ghostPrefab, point.transform); ghost.SetPose(point); } }
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>(); }