Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

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


    Jul 19, 2019
    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?