Page 1 of 1

Trouble making continue buttons invisible

Posted: Sat Feb 07, 2015 1:31 am
by slapdashash
Hi,



I'd like the player to be able to click anywhere on the screen to first advance the typewriter effect, and then skip to the next line. I've been following the 'Unity GUI Dialogue UI section' in the doc about this, and made a fullscreen button, but am struggling to figure out the "make the continue button invisible" bit. How exactly do I do this?



So far I've only found the 'invisible' checkbox (near the bottom, above 'Clip Children') in the GUIControl script on the button itself, but when unchecked the button doesn't work at all. What am I doing wrong? how do I make an invisible button?



Trouble making continue buttons invisible

Posted: Sat Feb 07, 2015 3:31 am
by Tony Li
Hi,



Check these:



- Set Text to a single blank space. (This usually does the trick.)



- Make sure no textures are assigned to the button states (Disabled, Normal, etc.).



- Set Gui Style Name to a button style in your GUI skin that doesn't have any textures assigned.



You may want to temporarily assign a semi-transparent texture in the GUI skin to make sure the button correctly covers the whole screen and responds to clicks. Once it's working, unassign the texture.

Trouble making continue buttons invisible

Posted: Sat Feb 07, 2015 5:36 am
by slapdashash
Ah, sweet relief! That's been doing my head in all day.



Thanks for your help :)



Trouble making continue buttons invisible

Posted: Sat Feb 07, 2015 6:15 am
by Tony Li
Happy to help!