The problem is that Rewired Event System
does not set EventSystem.current
. This component allows for multiple independent UIs. Thus, you create multiple Rewired Event System
s, which of them should be set to EventSystem.current
?
According to documentation
Rewired also comes with the RewiredEventSystem component which has the additional option to allow multiple Event Systems to run in the scene at the same time. This can be useful if you want to create multiple independent UI's for different Players.
Now, to solve your problem, you should not use Rewired Event System
but instead create normal Event System
and replace Standalone Input Module
with Rewired Standalone Input Module
.
According to documentation
You can either create a normal Unity Event System and replace the Standalone Input Module with the Rewired Standalone Input Module component or you can create a Rewired Event System from either of the menu items:
- GameObject -> Create Other -> Rewired -> UI -> Rewired Event System
- Window -> Rewired -> Create -> UI -> Rewired Event System