Quantcast
Channel: Latest Questions by 07Mr07
Viewing all articles
Browse latest Browse all 59

Gui.Button over another gui.button

$
0
0
Hi! I have a gui.button and another second over him to cancel the action. The problem is if I use this code: if(GUI.Button(Rect(30, 100, 70, 70), mainBut)) { Debug.Log("MAIN BUTTON"); } if(GUI.Button (Rect(160,100,20,20), cancel)) { Debug.Log("CANCEL"); } shows the cancel button but doesn't work, and If I use this: if(GUI.Button (Rect(160,100,20,20), cancel)) { Debug.Log("CANCEL"); } if(GUI.Button(Rect(30, 100, 70, 70), mainBut)) { Debug.Log("MAIN BUTTON"); } the cancel button works but dont shows like the image(second) ![alt text][1] Some ideas to fix this? Thanks in advance! :D [1]: /storage/temp/22604-butt.png

Viewing all articles
Browse latest Browse all 59

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>