1.4.1 • Published 3 years ago
extensions.unity.gyroscope.parallax v1.4.1
Unity-Gyroscope-Parallax
Unity Parallax based on gyroscope components. Supported fake gyroscope for simulation in Unity Editor.
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
- Add this code to /Packages/manifest.json
{
"dependencies": {
"extensions.unity.gyroscope.parallax": "1.4.1",
},
"scopedRegistries": [
{
"name": "Unity Extensions",
"url": "https://registry.npmjs.org",
"scopes": [
"extensions.unity"
]
},
{
"name": "NPM",
"url": "https://registry.npmjs.org",
"scopes": [
"com.cysharp",
"com.neuecc"
]
}
]
}How to use
- add needed
Gyro...component to any GameObject - link Targets to list of targets
- press 'Play' button in Unity Editor
- find
Fake Gyroscope ManagerinDonDestroyOnLoadscene (appears in Play Mode) 
- change XY values of
GravityandAttitudeproperties to simulate gyroscope in Unity Editor