private Vector3 buttonRectScale; // new Vector3(0.6666f, 1, 0.2f); void Start() { panelManager = GetComponentInChildren <VRGestureUIPanelManager>(); menuHandedness = (VRGestureManager.Instance.gestureHand == HandType.Left)? HandType.Right : HandType.Left; rootCanvas = GetComponent <Canvas>(); vrHandUIPanel = transform.Find("Panels"); // start with hand UI visible uiVisible = true; ToggleCanvasGroup(panelManager.canvasGroup, uiVisible); vrGestureGallery = transform.GetComponentInChildren <VRGestureGallery>(true); buttonRectScale = new Vector3(0.6666f, 1, 0.2f); // get vr player hand and camera myAvatar = VRGestureManager.Instance.rig; vrMenuHand = myAvatar.GetHand(menuHandedness); vrCam = VRGestureManager.Instance.rig.head; GenerateRecordMenuButtons(); GenerateEditMenuButtons(); GenerateNeuralNetMenuButtons(); }
public void Init(VRGestureGallery _gallery, List <GestureExample> _examples, List <int> _lineNumbers) { gallery = _gallery; examples = _examples; lineNumbers = _lineNumbers; titleParent = (RectTransform)transform.Find("Title"); gridParent = (RectTransform)transform.Find("Grid"); GenerateTitle(); GenerateGestureGalleryGrid(); }