Trouble making continue buttons invisible

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
slapdashash
Posts: 15
Joined: Sat Feb 07, 2015 5:52 am

Trouble making continue buttons invisible

Post 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?


User avatar
Tony Li
Posts: 21033
Joined: Thu Jul 18, 2013 1:27 pm

Trouble making continue buttons invisible

Post 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.
slapdashash
Posts: 15
Joined: Sat Feb 07, 2015 5:52 am

Trouble making continue buttons invisible

Post by slapdashash »

Ah, sweet relief! That's been doing my head in all day.



Thanks for your help :)


User avatar
Tony Li
Posts: 21033
Joined: Thu Jul 18, 2013 1:27 pm

Trouble making continue buttons invisible

Post by Tony Li »

Happy to help!
Post Reply