Skip to content

Commit

Permalink
Merge pull request #7 from fuziki/feature/upm
Browse files Browse the repository at this point in the history
support upm
  • Loading branch information
fuziki authored Jan 17, 2023
2 parents 83ed50f + 6c32b2b commit 7867a82
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "com.github.fuziki.unity_app_event_monitor",
"version": "0.1.0",
"version": "0.2.0",
"displayName": "UnityAppEventMonitor",
"description": "Receive keyboard input even when Unity.app is in the background with no focus.",
"unity": "2020.3",
Expand Down
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,14 @@ This GIF shows that unity can detect keys entered into TextEdit.
* macOS 12+ (Apple Silicon and Intel)

# Installation
Download [AppEventMonitor.unitypakcage](https://github.com/fuziki/UnityAppEventMonitor/releases/download/0.1.0/AppEventMonitor.unitypackage) from the release page and install it in your project.
## Unity Pakcage Manager (UPM)
Select "Add package form git URL" in the Unity Package Manager and enter the following path.
[https://github.com/fuziki/UnityAppEventMonitor.git?path=Examples/UnityAppEventMonitor/Assets/Plugins/AppEventMonitor](https://github.com/fuziki/UnityAppEventMonitor.git?path=Examples/UnityAppEventMonitor/Assets/Plugins/AppEventMonitor)

## Copy Source
Copy and paste [Examples/UnityAppEventMonitor/Assets/Plugins/AppEventMonitor](Examples/UnityAppEventMonitor/Assets/Plugins/AppEventMonitor) into your Unity project.

## Accessibility
To allow monitoring of keyboard input in the background, you need to add Unity to Accessibility.
Open `System Preferences` > `Security & Privacy` > `Privacy` > `Accessibility` and add `Unity.app`.
(And `Unity Hub.app` if you use)
Expand Down

0 comments on commit 7867a82

Please sign in to comment.