All Projects → mmeiburg → unityAndroidSensors

mmeiburg / unityAndroidSensors

Licence: MIT license
Access to android sensors for Unity

Programming Languages

C#
18002 projects

Projects that are alternatives of or similar to unityAndroidSensors

UnityDebug
A wrapper script for Unity debug calls to use conditional attributes in order to avoid debug code being compiled into release builds.
Stars: ✭ 29 (+107.14%)
Mutual labels:  unity3d-plugin, unity2d
Unitylibrary
📚 Library of all kind of scripts, snippets & shaders for Unity
Stars: ✭ 1,968 (+13957.14%)
Mutual labels:  unity3d-plugin, unity2d
Unity Script Collection
A maintained collection of useful & free unity scripts / library's / plugins and extensions
Stars: ✭ 3,640 (+25900%)
Mutual labels:  unity3d-plugin, unity2d
TsukiSuite
A toolsuite created to make Unity development easier
Stars: ✭ 23 (+64.29%)
Mutual labels:  unity3d-plugin, unity2d
template-unity-package
A Github template for creating a new Unity Package. Hit the green "User this template" next to "Clone or download" to get started!
Stars: ✭ 50 (+257.14%)
Mutual labels:  unity3d-plugin, unity2d
ScriptableObjectMultiSelectDropdown
Multi Select Dropdown for ScriptableObjects
Stars: ✭ 18 (+28.57%)
Mutual labels:  unity3d-plugin, scriptableobject
Savegamepro
A Complete and Powerful Save Game Solution for Unity (Game Engine)
Stars: ✭ 30 (+114.29%)
Mutual labels:  unity3d-plugin, unity2d
Jengine
JEngine是针对Unity开发者设计的开箱即用的框架,封装了强大的功能,小白也能快速上手,轻松制作可以热更新的游戏 | JEngine is a streamlined and easy-to-use framework designed for Unity Programmers which contains powerful features, beginners can start up quickly and making hot update-able games easily
Stars: ✭ 564 (+3928.57%)
Mutual labels:  unity3d-plugin, unity2d
Apple Signin Unity
Unity plugin to support Sign In With Apple Id
Stars: ✭ 228 (+1528.57%)
Mutual labels:  unity3d-plugin, unity2d
Unitydynamicscrollrect
An optimized approach to lists with dozens of elements and a Pooling system
Stars: ✭ 157 (+1021.43%)
Mutual labels:  unity3d-plugin, unity2d
Unity Scriptableobjects Game Events
Based on a great talk by Ryan Hipple, here is my improved version of his Game Event system for Unity
Stars: ✭ 121 (+764.29%)
Mutual labels:  unity3d-plugin, unity2d
UnityHexagonLibrary2d
A library to manage 2D hexagonal tiles in Unity.
Stars: ✭ 58 (+314.29%)
Mutual labels:  unity3d-plugin, unity2d
ScriptableObjectDropdown
Dropdown for ScriptableObjects
Stars: ✭ 40 (+185.71%)
Mutual labels:  unity3d-plugin, scriptableobject
download.unity.com
Unity Download http://unity3d.com/unity/download/archive
Stars: ✭ 90 (+542.86%)
Mutual labels:  unity3d-plugin, unity2d
Vaser
Vaser is a powerful high performance event based network engine library for C# .Net. It’s possible to start multiple servers in one program and use the same network code for all servers. In the network communication are all strings are omitted, instead it is based on a unique binary identifier, which the CPU and memory relieves massively.
Stars: ✭ 23 (+64.29%)
Mutual labels:  unity3d-plugin
t4-templates-unity3d
T4 Text Template Processor for Unity3D
Stars: ✭ 75 (+435.71%)
Mutual labels:  unity3d-plugin
shellcore
Shellcore Command Remastered
Stars: ✭ 41 (+192.86%)
Mutual labels:  unity2d
twitter-kit-unity
Twitter Kit for Unity
Stars: ✭ 69 (+392.86%)
Mutual labels:  unity3d-plugin
unity-prefab-quickadd
A Unity extension for quickly adding prefabs to the scene by creating shortcuts in the Hierarchy right-click menu.
Stars: ✭ 39 (+178.57%)
Mutual labels:  unity3d-plugin
UITKEditorAid
Elements and scripts that help in making Unity editors with UIToolkit.
Stars: ✭ 31 (+121.43%)
Mutual labels:  unity3d-plugin

Android Sensors for Unity

Overview

Want to get the light sensor output or other cool stuff of your Android smartphone? This package provide you an easy access to the Android Sensor Manager. You can get a full list of possible sensors on this page. Each output get stored in a smart variable.

Inspired by the talk of Ryan Hipple's (twitter | github) amazing talk from Unite Austin 2017, you can find part of that in the unity blog post, I wrote a simple event system based on Scriptable Objects. These system allows you to drag & drop variables and events around.

Installation

  • Grab unityAndroidSensors.unitypackage from the Releases page for everything you need!
  • OR, use the git repository.
  • Tested with Unity 2018.3 (New Prefab Workflow) or above.

What you get

Firstly, You have access to every sensor value of the Android Sensor Manager. Secondly, You get a simple extentable event system which allows you to create SmartEvents and SmartVars in the project view.

Events and Variables

To create a new SmartEvent or a SmartVar you can use the Create->SensorPlugin->SmartData context menu in the project view.

Sensor Reader

Events are accessible via the ListenSmartEvent Component

Sensor Reader

Here you can listen to SmartEvent's. If a event gets fired all callbacks get invoked.

These are particularly useful for game-level events, such as starting, pausing the game, a player dying etc.

Variables

Variables are just container of data, with the advantage that you can drag & drop them around like the events.

Comparators

Float- and IntVars can be compared by the Float- or IntVarComparator. You can choose to compare with a constant or another smart variable.

Sensor Reader

Unity Sensor Plugin

The heart of the plugin is the UnitySensorPlugin class. You need the class just once in your scene to get the connection to your Android phone. All sensor readers communicate with the UnitySensorPlugin to get the sensor data as a float[3] array.

Sensor Reader

The Sensor Reader provides you with some option to choose the right sensor, the output type and the update interval (per frame). The output is stored in a SmartVar. This can be of type float, int or Vector3.

If you choose int or float you have the option to select the specific axis of the output value, otherwise you get all axis as a Vector3Var.

Sensor Reader

Modifier

If you want to modifiy the output of a sensor before it is written into a SmartVar you can create a modifier which can manipulate the raw float[3] array from the sensor.

An example of a modifier is in the Modifier folder. It is applied to the pre-configured acceleration sensor.

New Unity Input System (Update 2019-10-15)

Hey guys with the new input system the plugin is obsolet. https://docs.unity3d.com/Packages/[email protected]/manual/Sensors.html

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].
OSZAR »