https://github.com/ivanmurzak/unity-gyroscope-parallax
Unity Parallax based on gyroscope components.
https://github.com/ivanmurzak/unity-gyroscope-parallax
gyroscope parallax parallax-effect unity unity-package unity-plugin unity2d unity3d unitypackage unityplugin
Last synced: about 1 month ago
JSON representation
Unity Parallax based on gyroscope components.
- Host: GitHub
- URL: https://github.com/ivanmurzak/unity-gyroscope-parallax
- Owner: IvanMurzak
- License: mit
- Created: 2022-05-03T09:04:52.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2025-03-31T12:06:17.000Z (2 months ago)
- Last Synced: 2025-03-31T13:31:20.483Z (2 months ago)
- Topics: gyroscope, parallax, parallax-effect, unity, unity-package, unity-plugin, unity2d, unity3d, unitypackage, unityplugin
- Language: C#
- Homepage:
- Size: 1.49 MB
- Stars: 87
- Watchers: 3
- Forks: 8
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Unity-Gyroscope-Parallax
 [](https://openupm.com/packages/extensions.unity.gyroscope.parallax/)  [](https://stand-with-ukraine.pp.ua)Unity Parallax based on gyroscope components. Supported fake gyroscope for simulation in Unity Editor. Alternative version to [Unity-Mouse-Parallax](https://github.com/IvanMurzak/Unity-Mouse-Parallax).
### Features
- ✔️ support legacy Input System
- ✔️ support new Input System
- ✔️ ability to simulate gyroscope in Unity Editor
- ✔️ move/rotate objects based on gyroscope
- ✔️ ability to add custom controllers
# GyroMover2D
Moves list of objects using gyroscope. 

# GyroRotator2D
Rotates list of objects using gyroscope.

# 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.gyroscope.parallax`# How to install - Option 2
- Add this code to/Packages/manifest.json
```json
{
"dependencies": {
"extensions.unity.gyroscope.parallax": "1.4.1",
},
"scopedRegistries": [
{
"name": "package.openupm.com",
"url": "https://package.openupm.com",
"scopes": [
"extensions.unity",
"com.cysharp",
"com.neuecc"
]
}
]
}
```# How to use
- add needed `Gyro...2D` component to any GameObject
- link Targets to list of targets
- press 'Play' button in Unity Editor
- find `Fake Gyroscope Manager` in `DonDestroyOnLoad` scene (appears in Play Mode)
- 
- change XY values of `Gravity` and `Attitude` properties to simulate gyroscope in Unity Editor