I use the code below to hide the UI image.
GameObject.Find("Image").GetComponent<UnityEngine.UI.Image>().enabled=false;
With this hidden method, when I want to display it in another script, it seems that the UI image has not been obtained, but is there any other way to obtain the UI or hide it in another script?
unity3d
I was also worried about something before, so I was able to solve it by referring to the following.
The corresponding item appears in the middle of the page.
Show or hide Button
http://qiita.com/2dgames_jp/items/b3d7d204895d67742d0c
gameObject.SetActive(false); is
GameObject.Find("Image").GetComponent().enabled=false;
I think it's okay to do.
916 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
573 rails db:create error: Could not find mysql2-0.5.4 in any of the sources
613 GDB gets version error when attempting to debug with the Presense SDK (IDE)
574 Who developed the "avformat-59.dll" that comes with FFmpeg?
© 2024 OneMinuteCode. All rights reserved.