In this chapter, we will talk about C# scripting with NGUI. We will learn how to handle events and interact with them. We'll use them to:
We will also see some of the NGUI's code-oriented components, such as event forwarding and message sending.
When using C# with NGUI, there are some methods that you will regularly use when you need to know if your object is currently hovered upon, pressed, or clicked.
If you attach a script to any object with a collider on it (for example, a button or a 3D object), you can add the following useful methods in the script to catch events: