private void CreatOffsetPreview() { if (_offsetPreview == null) { var go = new GameObject("EmbodyOffsetPreview_" + name); go.transform.SetParent(controllerPointTransform, false); _offsetPreview = go.gameObject.AddComponent <OffsetPreview>(); } _offsetPreview.currentMotionControl = currentMotionControl; _offsetPreview.Sync(_highlighted); }
private void SyncOffsetPreview() { if (_offsetPreview == null) { return; } _offsetPreview.Sync(); }