Unity Gyroscope Parallax Save Abandoned

Unity Parallax based on gyroscope components.

Project README

Unity-Gyroscope-Parallax

npm openupm License Stand With Ukraine

Unity Parallax based on gyroscope components. Supported fake gyroscope for simulation in Unity Editor. Alternative version to 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

unity-gyroscope-parallax-small

GyroMover2D

Moves list of objects using gyroscope.

image image

Unity_WTZrJSE6qY

GyroRotator2D

Rotates list of objects using gyroscope.

image image

Unity_CeUGRyFD5v

How to install - Option 1 (RECOMMENDED)

  • Install OpenUPM-CLI
  • 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
{
  "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)
  • image
  • change XY values of Gravity and Attitude properties to simulate gyroscope in Unity Editor
Open Source Agenda is not affiliated with "Unity Gyroscope Parallax" Project. README Source: IvanMurzak/Unity-Gyroscope-Parallax
Stars
65
Open Issues
0
Last Commit
1 year ago
License
MIT

Open Source Agenda Badge

Open Source Agenda Rating