April 2017
Beginner to intermediate
376 pages
8h 4m
English
TheOnFocusEvent component is set up to handle our gaze. It has two modes: Focus Enter and Focus Lost. Here, we will need to add the component and then set up our object to work with it.
Click on Add Component in the inspector on the LeftRect object. Type in OnFocusEnter and select the OnFocusEnter component:

When the OnFocusEnter component appears, you will see two boxes with plus and minus signs under them. Click on the plus sign for each box:

Now you will see two boxes appear, looking for GameObjects. Simply drag the ...
Read now
Unlock full access