var mousePos = Vector2.zero;
#if ENABLE_INPUT_SYSTEM
mousePos = Mouse.current.position.ReadValue();
#else
mousePos = Input.mousePosition;
#endif
Unity InputSystem 鼠标屏幕位置
于 2023-06-20 14:52:09 首次发布
var mousePos = Vector2.zero;
#if ENABLE_INPUT_SYSTEM
mousePos = Mouse.current.position.ReadValue();
#else
mousePos = Input.mousePosition;
#endif