This package provides your game with a keyboard that can be used with a controller for input.
It works similar to old mobile phone where you repeatedly push a button to choose the alphabetical characters on this button. So if the button says 2ABC, you push once for 2, twice for A and so on.
The default target of the keyboard is chat - calling user scrips with “OnChatMessage”. It will not work with the standard out of the box chat, but for example with the chat from the Notifications package or my “Better Chat Widget” package.
You can also use this keyboard to send text to other destinations. There is one template included in this package, “Announcer”, which is a standing button that you can interact with and it will open the keyboard and upon the keyyboard sending it back to the “Announcer”, that one will use the Shout method of the Notification package to shout it to all current users of the server.
How to use:
Drag the userControllerKeyboard template to the User template
Install Notifications package from Crayta if you haven’t yet, unless you already have a custom chat handler
For the input optimized for controllers / not keyboard mouse, add the playerControllerKeyboard script and the controllerKeyboardWidget to the Player template. For this widget, make sure requiresCursor is not checked.
For the announcer: Add the template into your game and connect the OnInteract method in the entity window with the UserTemplate userControllerKeyboard folder method “ShowKeyboard”.
Install Notifications package from Crayta if you haven’t yet, unless you already have a custom Shout handler
Start the game, interact with the button and see the Shout message of your keyboard input
Please send questions, feedback, feature requests using Crayta Discord discord.gg/crayta @Daystiny
or chat with me on Stadia: Daystiny#1423