Advertisement
Deozaan

Example uGUI Setup for cInput

Sep 13th, 2015
265
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.50 KB | None | 0 0
  1. // these are the inputs that will be visible in the menu for the player to change
  2. cInput.SetKey("UISubmit", Keys.Enter);
  3. cInput.SetKey("UICancel", Keys.Backspace);
  4. cInput.SetKey("UILeft", Keys.LeftArrow);
  5. cInput.SetKey("UIRight", Keys.RightArrow);
  6. cInput.SetKey("UIUp", Keys.UpArrow);
  7. cInput.SetKey("UIDown", Keys.DownArrow);
  8. // this is what would be used by the customized StandaloneInputModule of uGUI.
  9. cInput.SetAxis("UIHorizontal", "UILeft", "UIRight");
  10. cInput.SetAxis("UIVertical", "UIUp", "UIDown");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement