undo change- parent to vrCameraRig

vrCameraRig transform is scaled alongside avatar during scaling, which handles the local offset of the menu while scaling in VR

this does not change how the menus function on desktop, as the transforms are only placed based on position from camera, not the parent container object
This commit is contained in:
NotAKidoS 2023-03-04 20:26:37 -06:00
parent 8525bbd019
commit 0fb1649ace
2 changed files with 2 additions and 2 deletions

View file

@ -47,7 +47,7 @@ public class MainMenuHelper : MonoBehaviour
{ {
//VR specific anchor //VR specific anchor
GameObject vrAnchor = new GameObject("MSP_MMVR_Anchor"); GameObject vrAnchor = new GameObject("MSP_MMVR_Anchor");
vrAnchor.transform.parent = PlayerSetup.Instance.transform; vrAnchor.transform.parent = PlayerSetup.Instance.vrCameraRig.transform;
vrAnchor.transform.localPosition = Vector3.zero; vrAnchor.transform.localPosition = Vector3.zero;
worldAnchor = vrAnchor.transform; worldAnchor = vrAnchor.transform;
} }

View file

@ -45,7 +45,7 @@ public class QuickMenuHelper : MonoBehaviour
{ {
//VR specific anchor //VR specific anchor
GameObject vrAnchor = new GameObject("MSP_QMVR_Anchor"); GameObject vrAnchor = new GameObject("MSP_QMVR_Anchor");
vrAnchor.transform.parent = PlayerSetup.Instance.transform; vrAnchor.transform.parent = PlayerSetup.Instance.vrCameraRig.transform;
vrAnchor.transform.localPosition = Vector3.zero; vrAnchor.transform.localPosition = Vector3.zero;
worldAnchor = vrAnchor.transform; worldAnchor = vrAnchor.transform;
} }