private void LoadInputProfile() { // Start loading possible profiles for the controller var profiles = controller.GetProfiles(); if (hasProfileList && profiles != null && profiles.Length > 0) { loadedProfile = profiles[0]; inputProfileLoader.LoadProfile(profiles, OnProfileLoaded); } }
public void LoadProfile() { lastDownloadedProfile = profileNameDropdown.options[profileNameDropdown.value].text; loadNone.interactable = false; loadLeft.interactable = false; loadRight.interactable = false; inputProfileLoader.LoadProfile(new string[] { lastDownloadedProfile }, OnProfileLoaded); }