Keypad Canvas - Setup
Last updated
Last updated
This only needs to be done if youβre setting the canvas buttons yourself or if anything might be missing.
Select and open out your type of Keypad - Canvas from the UIManager
Select any of the Button numbers, add an OnClick() event in the bottom right of the inspector by clicking the + (Unless it already has one added, image below)
Add your KPUIManager GameObject to the available slot
On the drop down on the right (No function dropdown if nothing is selected)
Choose the KPUIManager option which will open out into more.
Choose KeyController.KeyPressString
You can then add whatever number or keyboard symbol you like in the slot below the dropdown.
Continue this for each button available.
Similar setup for the CLOSE / CLEAR / ENTER Buttons
Select any of the input keys, add an OnClick() event in the bottom right of the inspector by clicking the +
Add your KPUIManager GameObject to the available slot
On the drop down on the right, choose the KPUIManager option which will open out into more.
Choose
KeyController.KeyPressClose
KeyController.KeyPressClear
Make sure when you choose the KeypadClear method from the dropdown, make sure the bool is ticked as below
KeyController.KeyPressEnter