Skip to content

IvanMurzak/Unity-Mouse-Parallax

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unity-Mouse-Parallax

npm openupm License Stand With Ukraine

Unity Parallax based on mouse input. Alternative version to Unity-Gyroscope-Parallax.

Features

  • ✔️ support legacy Input System
  • ✔️ support new Input System
  • ✔️ move/rotate objects based on mouse input
  • ✔️ ability to add custom controllers

Short Demo

Full demo video
Unity_93T6QlZNhC.mp4

MouseMover2D

Moves list of objects using mouse input.

Unity_2OiBF8IwNI

MouseRotator2D

Rotates list of objects using mouse input.

Unity_uWbnrUEaR2

Installation

Option 1 - Installer

  • ⬇️ Download Installer
  • 📂 Import installer into Unity project
    • You may use double click on the file - Unity will open it
    • OR: You may open Unity Editor first, then click on Assets/Import Package/Custom Package, then choose the file

Option 2 - OpenUPM-CLI

openupm add extensions.unity.mouse.parallax

Option 3 - Manual (manifest.json)

  • Add this code to /Packages/manifest.json
{
  "dependencies": {
    "extensions.unity.mouse.parallax": "1.0.5"
  },
  "scopedRegistries": [
    {
      "name": "package.openupm.com",
      "url": "https://package.openupm.com",
      "scopes": [
        "extensions.unity",
        "com.cysharp",
        "com.ivanmurzak"
      ]
    }
  ]
}

How to use

  • add needed Mouse...2D component to any GameObject
  • link Targets to list of targets
  • press 'Play' button in Unity Editor

Sponsor this project

 

Contributors