Forum rules - please read before posting.

Clicking on GUI causes Player move to that point.

We have a button that pops up Inventory. It's Unity GUI, not AC gui, with custom code linked to buttons.
After updating to latest AC, player started to move to the point of that button on screen, instead of triggering Inventory. In previous AC version everything was fine. Unity 2019.1.9f1
Here how it looks:

And how it was:



  • Please be specific with your AC versions - exactly which were you using before updating? I can't recall any recent change that may have affected this.

    Unless your Button is linked to AC's Menu Manager, however, this would be expected. I shall consider adding an option to ignore point-control clicks if the mouse is over a UI element.

  • Was AC 1.67.5
    Now 1.68.3
    Button is not linked to AC's Menu Manager

  • Not being linked to the Menu Manager is what's doing it - but I will add in the auto-blocking option in the next release.

  • edited July 12

    Thanks for answer.

    Can you please tell some estimates for implementing auto-blocking option? It would be great to know that we can wait for AC release or try to fix by ourselves.

    We were using custom Dummy AC menu script to avoid player move when clicked. But something went wrong. Here it is:

    using AC;
    using UnityEngine;

    public class DummyACMenu : MonoBehaviour
    [SerializeField] private Canvas _canvas = default(Canvas);
    [SerializeField] private RectTransform _rectTransform = default(RectTransform);

    private Menu _menu = default(Menu);
    private void Awake()
        _menu = ScriptableObject.CreateInstance<AC.Menu>();
        _menu.menuSource = AC.MenuSource.UnityUiPrefab;
        menu.title = string.Format("DummyAC{0}_{1}",, name);
        _menu.appearType = AC.AppearType.DuringGameplay;
        _menu.canvas = _canvas;
        _menu.rectTransform = _rectTransform;
        _menu.ignoreMouseClicks = false;


  • I expect v1.68.4 will be out in the next week or two, but you can do a quick hack by inserting the following into line 110 of PlayerMovement.cs:

    if (KickStarter.playerMenus.EventSystem.IsPointerOverGameObject ()) return;
  • Thank you Chris. Your quick hack works.

  • Hi again
    We've just updated to AC 1.68.4 and the problem still exist.
    We saw UnityUIBlocksClick but not sure about how to use it correctly. Can you please explain this moment.

  • As the behaviour will affect existing games, the change is optional. To enable the effect, check Unity UI blocks interaction and movement? in the Settings Manager's "Interface settings".

  • Thank you, Chris. Everything works fine.
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.
Do NOT follow this link or you will be banned from the site!