Search Unity

GUITexture Hittest Touch Problem

Discussion in 'Scripting' started by MasterEpik, Oct 22, 2014.

  1. MasterEpik

    MasterEpik

    Joined:
    Sep 24, 2014
    Posts:
    4
    hi everyone,

    my problem is that I have a few guitextures in my 2d game and these are clickable. So in my script there is the hittest function and I have made a Touch.Phase = Stationary if statement. but this isnt what I want because when I click on the guitexture it automatically calls the Application. LoadLevel method which is in my script also. but I want that if I began the touch on the gui and end the touch on the gui then it should load the new level. so i want a single tap. I dont know how to do that.