Component:VirtualKeyTextDrive

From Resonite Wiki
Revision as of 00:19, 17 October 2024 by 989onan (talk | contribs) (Add info)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Component image 
Virtual Key Text Drive component as seen in the Scene Inspector

This component takes a VirtualKey component and uses it's settings to drive a textfield's content to match what that key would type when pressed.

Usage

Fields
Name Type Description
persistent Bool Determines whether or not this item will be saved to the server.
UpdateOrder Int Controls the order in which this component is updated.
Enabled Bool Controls whether or not this component is enabled.
Key direct RelayRef`1<VirtualKey> The virtual key to source the text from (so if the virtual key is set to "d" it will drive the target of Text to "d".
Text field drive of String The text field to drive

Examples

Used in keys in the default keyboard to change the keys to capital letters when shift or caps is enabled.

See Also