Version: 5.5

Event.mousePosition

Switch to Manual
public Vector2 mousePosition ;

Description

Позиция мыши.

Используется в событиях EventType.MouseMove и EventType.MouseDrag.

See Also: Event.delta.

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { void OnGUI() { Event e = Event.current; Debug.Log(e.mousePosition); } }