I'm newbie in Unity3D, I am using NGUI and i don't know how to code a button created from NGUI button. The only code I know is:
void OnMouseDown
Application.loadlevel(1);
But it's not working in NGUI button. Can someone help me with these simple problem? I'm sorry for asking this small problem of mine, I'm just only a student and beginner, I hope you understand! thank you in advance.
You're going to have to use "OnClick" instead. To load the next level on a button click you'd have to add this to the script attached to the game object in question:
Attach this to your button and it should work.
One thing you might want to do however is to get a centralized script for all your buttons and do a switch case to see which button is pressed, so you don't get a million scripts for each button in your GUI. That would get rather messy really fast!