Unity-Mouse-Parallax

Unity Parallax based on mouse input. Alternative version to 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
- 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
{
"dependencies": {
"extensions.unity.mouse.parallax": "1.0.3",
},
"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