Component:VirtualShiftColorDriver

From Resonite Wiki
Component image 
Virtual Shift Color Driver component as seen in the Scene Inspector

The VirtualShiftColorDriver component is used to change a color field whenever a keyboard specified has its Shift key state changed.

Fields

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. Some components stop their functionality when this field is disabled, but some don't.
Keyboard direct RelayRef`1<VirtualKeyboard> The keyboard to monitor the shirt state for.
ColorTarget IField`1<ColorX> The field to set the color of depending on keyboard state.
NormalColor ColorX The color to set the field in ColorTarget to when Keyboard is in default state.
ShiftColor ColorX The color to set the field in ColorTarget to when Keyboard's Shift key is toggled on like capslock.
HoldColor ColorX The color to set the field in ColorTarget to when Keyboard's Shift key is being held down.

Usage

Provide values for all the fields in this component in order for it to start working.

Examples

Used to make keys on the default keyboard change color when Shift is held, toggled, or released.

See Also