Forum rules - please read before posting.

Rewired Integration - No movement control after scene change

edited September 2021 in Technical Q&A

Unity Ver: 2019.4.18f1
AC Ver: 1.74.2

Hello,

I've hit a snag with integrating Rewired.

Everything works fine in whatever scene I start in, however, when changing to a new scene AC controls such as player movement and camera (thumb sticks on the pad) stop working.

There are no warnings or errors in the console.

My setup is:

A Rewired input manager prefab on the player

The AC integration script on the PersistentEngine prefab

In the new scene I can see that all these objects are correctly present:

The Rewired debug shows that values are being recieved from pressing buttons on the pad and in my custom scripts, other inputs do still work in the new scenes. It's just AC character control that doesn't seem to be working properly.

Any help or ideas appreciated!

Comments

  • Try keeping both the Rewired Input Manager and AC Input Rewired script in the same place.

    For now, place both in a pair of scene files (the one you're starting from, and the one you're transitioning to), and remove them from your prefabs - so that neither need to be spawned in.

    Do things behave then?

  • edited September 2021

    That indeed seems to work (could of sworn I tried that setup yesterday!)

    I set them up as two prefabs, and placed them in each scene:

    The only warning I get now is Rewired complaining it's finding two objects of itself on a scene change (because don't destroy on load is true) but I can run with that.

    Thanks very much.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.