How do I get PointerEventData from the current Event System?

I noticed that the the information in the below image is displayed when selecting the EventSystem in the scene. How do I access this information directly to use with my scripts?

alt text

You can access it from any event by Event.current. If You will access it in Update function You will get null value.

Here is an example:

void OnGUI()
		Event e = Event.current;
		Debug.Log( e.mousePosition );

If You are intrested exactly in data from EventSystem You must attach a small script to Your EventSystem. Everything You need is here: