https://github.com/ivanmurzak/unity-mouse-parallax
Unity Parallax based on mouse position.
https://github.com/ivanmurzak/unity-mouse-parallax
package unity unity-plugin unity2d unity3d unity3d-plugin unitypackage unityplugin
Last synced: 7 months ago
JSON representation
Unity Parallax based on mouse position.
- Host: GitHub
- URL: https://github.com/ivanmurzak/unity-mouse-parallax
- Owner: IvanMurzak
- License: mit
- Created: 2022-10-29T17:38:53.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-03-16T20:43:05.000Z (about 3 years ago)
- Last Synced: 2025-01-31T03:38:38.249Z (over 1 year ago)
- Topics: package, unity, unity-plugin, unity2d, unity3d, unity3d-plugin, unitypackage, unityplugin
- Language: C#
- Homepage:
- Size: 3.57 MB
- Stars: 28
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Unity-Mouse-Parallax
 [](https://openupm.com/packages/extensions.unity.mouse.parallax/)  [](https://stand-with-ukraine.pp.ua)
Unity Parallax based on mouse input. Alternative version to [Unity-Gyroscope-Parallax](https://github.com/IvanMurzak/Unity-Gyroscope-Parallax).
### Features
- ✔️ support legacy Input System
- ✔️ support new Input System
- ✔️ move/rotate objects based on mouse input
- ✔️ ability to add custom controllers

Full demo video
https://user-images.githubusercontent.com/9135028/198884331-8e084cda-77bb-427a-bb6a-7d6af585b26f.mp4
# MouseMover2D
Moves list of objects using mouse input.

# MouseRotator2D
Rotates list of objects using mouse input.

# How to install - Option 1 (RECOMMENDED)
- [Install OpenUPM-CLI](https://github.com/openupm/openupm-cli#installation)
- Open command line in Unity project folder
- `openupm add extensions.unity.mouse.parallax`
# How to install - Option 2
- Add this code to /Packages/manifest.json
```json
{
"dependencies": {
"extensions.unity.mouse.parallax": "1.0.4",
},
"scopedRegistries": [
{
"name": "package.openupm.com",
"url": "https://package.openupm.com",
"scopes": [
"extensions.unity",
"com.cysharp"
]
}
]
}
```
# How to use
- add needed `Mouse...2D` component to any GameObject
- link Targets to list of targets
- press 'Play' button in Unity Editor