Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

object | trigger | mouse hover ?

Discussion in 'Scripting' started by paco, Nov 15, 2010.

  1. paco

    paco

    Guest

    Joined:
    Oct 28, 2010
    Posts:
    20
    hey,

    is there a way to catch the event "hover with mouse" on an object like a cube for example?
    i would like e.g. to change the color of a cube if the user hover's it with the mouse.

    the one thing i could find on the documentation regarding event hover was this:
    http://unity3d.com/support/documentation/ScriptReference/GUIStyle.html

    my question, can i use this on a cube?
    is what i would like to try possible?

    greetz
     
  2. Chris-Sinclair

    Chris-Sinclair

    Joined:
    Jun 14, 2010
    Posts:
    1,326