2D Toolkit Forum
2D Toolkit => Support => Topic started by: ironquark on October 28, 2017, 09:17:13 pm
-
Hi
I'm using Window script from 2dtoolkit,
How to hide/show the window with all objects?
I need to know the class name of window script, to hide and show the window on a button.
See image:
https://imgur.com/2omAyIG
https://imgur.com/ZnKzLuH
Thanks
-
With this line:
Button1 = GameObject.Find("ToggleButton1").GetComponent<tk2dUIToggleButton>();
I can acess the button with the class tk2dUIToggleButton, what is the name of the class for the Window?
-
With this:
mywindow = GameObject.Find ("Window").GetComponent<tk2dUILayout>();
I'm able to acess the component window, my question is, How to hide/show the window?
-
For a while I'm using this solution:
GameObject.Find ("Window").SetActive(false);
-
Hi,
Did you try that thing I suggested in the email?
-
Thanks to everyone for the code, it was very helpful to me.