unity3d - How can I get sensor data into Unity while using Google Cardboard? -


i have basic google cardboard unity application loaded , working great.

i want utilize few sensors on phone aren't available in unity. example, want access step_detector sensor.

i created own unityplayeractivity, , without cardboard, seems work well. problem have no idea how use custom unityplayeractivity cardboard.

from can tell, cardboard demo uses "unitycardboardactivity" class main activity. took @ unitycardboardactivity.jar , looks unitycardboardactivity class inherits cardboardactivity, not unityactivity.

so guess unitycardboardactivity manually starting default unityplayeractivity somewhere in code, can't change start own custom unityplayeractivity in way can tell.

is there way sensor data without using unityplayeractivity?

i tried making activity extend unitycardboardactivity instead, reason don't have access "getsystemservice" method when that, can't access sensors.


Comments

Popular posts from this blog

css - SVG using textPath a symbol not rendering in Firefox -

Java 8 + Maven Javadoc plugin: Error fetching URL -

node.js - How to abort query on demand using Neo4j drivers -