unity 4.6 button functions?

The button has a default function of OnClick(). I wanted to have a boolean that was true while the person has their finger on the button, and have it false while they are not. There is no function where you lift your finger, and there is no function to get a status. Is unity 4.6 just limited or am i missing something do you know how to do this?

The methods you’re looking for are OnPointerDown() and OnPointerUp(). Example:

using UnityEngine;
using UnityEngine.EventSystems;

public class ClickyStuff : MonoBehaviour, IPointerDownHandler
{
	public void OnPointerDown(PointerEventData data)
	{
		// Set your variable here
	}
}