Device Canvas Setup

Basic Button Setup

  1. Open the UI Manager GameObject

  1. Select and open out the appropriate DeviceType - Canvas

  1. 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)

  2. Add your CodeDeviceUIManager (UI Manager GameObject) to the available slot

  1. On the drop down on the right (No function dropdown if nothing is selected)

    1. Choose the CodeDeviceUIManager option which will open out into more

  2. Choose CodeDeviceUIManager.KeyPressString

  3. You can then add whatever number or keyboard symbol you like in the slot below the dropdown

  4. Continue this for each button available.

Clear / Close / Submit Buttons Setup

  1. Select any of the input keys, add an OnClick() event in the bottom right of the inspector by clicking the +

  2. Add your CodeDeviceUIManager GameObject to the available slot

  3. On the drop down on the right, choose the CodeDeviceUIManager option which will open out into more

Close Key

Choose: CodeDeviceUIManager.KeyPressClose

Clear Key

Choose: CodeDeviceUIManager.KeyPressClear

Submit Key

Choose: CodeDeviceUIManager.KeyPressSubmit

Last updated

Was this helpful?