Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Buttons not working? Anyone know why?

Discussion in 'Editor & General Support' started by Fablerede, Sep 9, 2021.

  1. Fablerede

    Fablerede

    Joined:
    Sep 9, 2021
    Posts:
    1
    Hi when i push this button nothing is happening, could anyone tell me why? I tried to post everything here involved.
    upload_2021-9-8_20-55-53.png
     

    Attached Files:

  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,762
    Do you have an EventSystem in the scene?

    Is the button responding to the mouse hovering over it, eg, darkening? If not, maybe there's something in front of it with RaycastTarget checked?.

    If it is responding, remove and reattach its delegate. IF that does not work, make a fresh script with a single Debug.Log() output in a public function, connect that.
     
    Last edited: Sep 21, 2021
  3. TobiLaForge

    TobiLaForge

    Joined:
    Jun 10, 2015
    Posts:
    2
    Have you found your problem? Make sure the Coroutine is called on an active Object (like Update()). If you want to deactivate your GameObject you can call it on any other active MonoBehaviour. E.g. create a field for the QuestManager and then: _questManager.StartCoroutine(...).