Skip to content
프로젝트

IvanMurzak/Unity-Gyroscope-Parallax

GitHub에서 보기

소개

A Unity plugin that enables parallax effects based on device gyroscope data. It allows you to create dynamic and immersive experiences by moving UI elements or game objects in response to device orientation changes. Perfect for adding depth and interactivity to your 2D and 3D projects.

게임 및 에뮬레이션

이 수치를 측정하는 방법

What you can do

  • ✔️ Add customizable parallax effect based on sensor data
  • ✔️ Control object movement & rotation based on gyroscope
  • ✔️ Supports both New and Legacy Input System
  • ✔️ Embedded gyroscope simulator right into Unity Editor

측정된 스타 증가

in 24h
-1
in 7 days
-1
in 15 days
-1
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

Unity Gyroscope Parallax

OpenUPM Unity Editor Unity Runtime r

Stars License Stand With Ukraine

Unity Parallax Effect

Unity Parallax based on gyroscope components. Supported fake gyroscope for simulation in Unity Editor. Alternative version to Unity-Mouse-Parallax.

Features

  • ✔️ Add customizable parallax effect based on sensor data
  • ✔️ Control object movement & rotation based on gyroscope
  • ✔️ Supports both New and Legacy Input System
  • ✔️ Embedded gyroscope simulator right into Unity Editor

Stability status

Unity Version Editor test Player test Build test
2019.4.40f1 2019.4.40f1 2019.4.40f1 2019.4.40f1
2020.3.48f1 2020.3.48f1 2020.3.48f1 2020.3.48f1
2021.3.45f1 2021.3.45f1 2021.3.45f1 2021.3.45f1
2022.3.62f1 2022.3.62f1 2022.3.62f1 2022.3.62f1
6000.0.58f1 6000.0.58f1 6000.0.58f1 6000.0.58f1

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.gyroscope.parallax

Usage

  • 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

GyroMover2D

Moves list of objects using gyroscope.

image image

Unity_WTZrJSE6qY

GyroRotator2D

Rotates list of objects using gyroscope.

image image

Unity_CeUGRyFD5v

관련 프로젝트 살펴보기

불러오는 중…