[Solution] OnScreenControl SendValueToControl does nothing

Recently I have been learning Input System.
I found a script named OnScreenStick. This script is used to simulate a virtual joystick.
I made another virtual joystick based on this script, but I found it didn’t work.
Because of my custom script inherits OnScreenControl, but in OnScreenControl script,
OnEnable and OnDisable are private methods.

So my script overwrite it. This operation prevents its original functionality from being called.
We could found it code source.

Last, my solution is not use OnEnable and OnDisable methods.
SendValueToControl will be work.

Hey I am facing the same issue
The image is broken could you share it again?

1 Like