1.4.1 • Published 2 years ago

extensions.unity.gyroscope.parallax v1.4.1

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

Unity-Gyroscope-Parallax

npm License

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

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

  • 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 Manager in DonDestroyOnLoad scene (appears in Play Mode)
  • image
  • change XY values of Gravity and Attitude properties to simulate gyroscope in Unity Editor
1.4.1

2 years ago

1.4.0

2 years ago

1.3.1

2 years ago

1.3.0

2 years ago

1.2.0

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago