Rewired stops working
Posted: Sat Dec 07, 2024 1:43 am
Hello!
I have been searching the forum and have not found the problem I'm having.
I'm using Rewired together with the dialog system. I have set the component “Input Device Manager” and “Input Device Manager Rewired”. Everything works perfectly.
The problem comes when I load a new scene. I use the “Proximity Selector” component in the player. As soon as there is a scene load I can no longer interact with the objects that have DialogueTrigger and “usable”. The UI appears, so I understand that the “Proximity Selector” detects them, but when I press the action button, it does not work.
I have tested and Rewired still works, but I think it creates a disconnect with Dialogue System when changing scenes.
To give some more context:
I have a GameManager, which is a singleton, this contains the DialogueManager (which is not destroyed) and a “Rewired Input Manager” which is also not destroyed, as it is part of the GameManager. In addition, I believe that something similar happens with the component “Dialogue Actor” that the player has, it is also in the singleton/GameManager and I believe that when making a scene change it is also lost.
I haven't seen anything similar on the forum, I bet I'm doing something wrong related to the singleton.
I have been searching the forum and have not found the problem I'm having.
I'm using Rewired together with the dialog system. I have set the component “Input Device Manager” and “Input Device Manager Rewired”. Everything works perfectly.
The problem comes when I load a new scene. I use the “Proximity Selector” component in the player. As soon as there is a scene load I can no longer interact with the objects that have DialogueTrigger and “usable”. The UI appears, so I understand that the “Proximity Selector” detects them, but when I press the action button, it does not work.
I have tested and Rewired still works, but I think it creates a disconnect with Dialogue System when changing scenes.
To give some more context:
I have a GameManager, which is a singleton, this contains the DialogueManager (which is not destroyed) and a “Rewired Input Manager” which is also not destroyed, as it is part of the GameManager. In addition, I believe that something similar happens with the component “Dialogue Actor” that the player has, it is also in the singleton/GameManager and I believe that when making a scene change it is also lost.
I haven't seen anything similar on the forum, I bet I'm doing something wrong related to the singleton.