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
Post a Comment