Search Unity

Unity Gyroscope Parallax (movement / rotation / custom)

Discussion in 'Assets and Asset Store' started by BAIZOR, Jun 30, 2022.

  1. BAIZOR

    BAIZOR

    Joined:
    Jul 4, 2013
    Posts:
    112
    Unity-Gyroscope-Parallax - GitHub
    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
    Code (JavaScript):
    1. {
    2.   "dependencies": {
    3.     "extensions.unity.gyroscope.parallax": "1.3.1",
    4.   },
    5.   "scopedRegistries": [
    6.     {
    7.       "name": "Unity Extensions",
    8.       "url": "https://registry.npmjs.org",
    9.       "scopes": [
    10.         "extensions.unity"
    11.       ]
    12.     },
    13.     {
    14.       "name": "NPM",
    15.       "url": "https://registry.npmjs.org",
    16.       "scopes": [
    17.         "com.cysharp",
    18.         "com.neuecc"
    19.       ]
    20.     }
    21.   ]
    22. }
    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)
    -
    - change XY values of `Gravity` and `Attitude` properties to simulate gyroscope in Unity Editor
     
    Last edited: Jul 4, 2022
    mgear likes this.
  2. BAIZOR

    BAIZOR

    Joined:
    Jul 4, 2013
    Posts:
    112
    Unity Chan - Demo
     

    Attached Files: