VintageRoots Member Dec 5, 2020 #1 Just updated to 1.1, im trying to open the main menu using the Escape button, How can i open the menu with any button i want?
Just updated to 1.1, im trying to open the main menu using the Escape button, How can i open the menu with any button i want?
VintageRoots Member Dec 5, 2020 #2 Added this line of code to the script "DisplayPanelManager.cs": private void Update() { if(Input.GetButtonDown("Cancel")) { m_MainMenuPanel.SmartOpen(); } }
Added this line of code to the script "DisplayPanelManager.cs": private void Update() { if(Input.GetButtonDown("Cancel")) { m_MainMenuPanel.SmartOpen(); } }
Sangemdoko Moderator Staff member Dec 6, 2020 #3 Yes that should work. Also note that the "Inventory Standard Input" component on your character can also be used to set up input to open/close panels. By default "Escape" is used to close the selected panel, so make sure to replace that to avoid problems. If you haven't done so yet, make sure to follow this guide on how to upgrade to version 1.1: https://opsive.com/support/document...tem/getting-started/version-1-1-update-guide/
Yes that should work. Also note that the "Inventory Standard Input" component on your character can also be used to set up input to open/close panels. By default "Escape" is used to close the selected panel, so make sure to replace that to avoid problems. If you haven't done so yet, make sure to follow this guide on how to upgrade to version 1.1: https://opsive.com/support/document...tem/getting-started/version-1-1-update-guide/