Forum rules - please read before posting.

Input method change persists after Play mode

Hi Chris, as always thanks for the continued development of AC.

I have noticed an issue - Unity 6.3 (17f1), AC 1.86.3, new Input System

The game I'm developing targets Android and iOS (for now) and therefore...
Settings menu > Interface > Input method: "Touch Screen"

When I enter Play mode in the editor and start to interact the input method switches to "Mouse And Keyboard", which makes sense. However, when I exit play mode it persists as "Mouse And Keyboard", rather than returning to "Touch Screen".

It's a minor bug but one that could easily cause issues if it slips through to a production build. I only noticed because of my physical device behaving differently to the editor during testing. Thanks.

Comments

  • Is this changing due to the Input System integration's Controls Reader having Auto Sync Input Method checked?

    To force-set a default value, use this script in your first scene:

    using UnityEngine;
    using AC;
    
    public class SetDefaultInputMethod : MonoBehaviour
    {
    
        public InputMethod defaultInputMethod;
        void Start() => KickStarter.settingsManager.inputMethod = defaultInputMethod;
    
    }
    
  • Unchecking "Auto Sync Input Method" fixed it. Thanks Chris.

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.