Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 3 months 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 (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2023-03-10T22:17:02.000Z (almost 2 years ago)
- Last Synced: 2024-11-12T17:03:15.777Z (3 months ago)
- Topics: gyroscope, parallax, parallax-effect, unity, unity-package, unity-plugin, unity2d, unity3d, unitypackage, unityplugin
- Language: C#
- Homepage:
- Size: 1.49 MB
- Stars: 81
- Watchers: 2
- 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