Search Unity

Question Do Dropdown.Hide() but it dosen't work. It looks like be canceled by parent's SetActive(false)?

Discussion in 'UGUI & TextMesh Pro' started by robotjjzhang, Jul 26, 2021.

  1. robotjjzhang

    robotjjzhang

    Joined:
    Jul 19, 2019
    Posts:
    1
    When a dropdown list is show, do Dropdown.Hide() and make its parent panel SetActive(false) in one function. Then, make its parent panel SetActive(true) with other operation. I think the droplist should be hide but its show still. It looks like the Dropdown.Hide() is not finished because its parent panel is set SetActive(false) then.

    I test waiting one second to make its parent panel SetActive(false), and the droplist can be closed successfully. I don't know why and anybody can help me?