Search Unity

GUITexture as mousecursor

Discussion in 'Scripting' started by phoen, Jan 10, 2007.

  1. phoen

    phoen

    Joined:
    Oct 25, 2005
    Posts:
    94
    Can I set a GUITexture to ignore OnMouseOver,Enter,Exit..?
    When using it as a mousecursor it

    p.
     
  2. StarManta

    StarManta

    Joined:
    Oct 23, 2006
    Posts:
    8,775
    Just don't implement those methods on it.

    Alternately, make a variable switch; if the variable is false, don't execute any code.

    Code (csharp):
    1.  
    2. function OnMouseEnter() {
    3. if (mySwitch) {
    4. ...
    5. }
    6. }
    7.