Next: , Previous: , Up: Interaction   [Contents][Index]


9.10 Mouse Over Toggle

Component: MouseOverToggle

This component turns things on/off based on whether the mouse is positioned over a collider on this object. To use, add some scripts or objects to the lists above. Entries in each list will have their active state swapped when the mouse enters/exits the collider.

Field of MouseOverToggle: GameObject[] objects

Objects we will toggle

Field of MouseOverToggle: bool reverse

Should on/off be reversed?

Field of MouseOverToggle: GameObject[] objects

Objects we will toggle

Field of MouseOverToggle: bool reverse

Should on/off be reversed?