private void LoadHandInputModel() { inputProfileHandModel = inputProfileLoader.LoadModelForHand( loadedHandProfile, (InputProfileLoader.Handedness)controller.hand, HandleHandModelLoaded); }
private void LoadInputModel() { inputProfileModel = inputProfileLoader.LoadModelForHand( loadedProfile, (InputProfileLoader.Handedness)controller.hand, HandleModelLoaded); if (inputProfileModel != null) { // Update input state while still loading the model UpdateModelInput(); } }
private void LoadModel(InputProfileLoader.Handedness handedness) { if (inputProfileModel != null) { Destroy(inputProfileModel.gameObject); } inputProfileModel = inputProfileLoader.LoadModelForHand(lastDownloadedProfile, handedness); UpdateModelRotations(); for (int i = 0; i < buttonsSliders.Length; i++) { SetButtonValue(i); } for (int i = 0; i < axesSliders.Length; i++) { SetAxisValue(i); } }