Hi, i’m trying to use the stepcounter sensor on android! but i’m having trouble finding any useful information regarding setting up the sensors for Android. Can someone please guide me in the right direction, I’m trying to count steps and when the app is opened show the amount of steps done.
Thanks for the reply, thats exactly how I got it working. I was wondering is there any point setting up step counter sensor in the input actions? Or is there no need for it.
Hei, @airevgeny I’m so sorry for the delayed response. I never got to implement the InputSystem’s StepCounter for iOS on my project because as per this document, iOS StepCounter is still not supported.
So, as an alternative, in my project I’m using Accelerometer as a StepCounter instead. It’s not really counting real, physical steps though as the Accel counts any physical movement with the device, but if with some calibration, Accel can mimic a StepCounter.
Still would appreciate it when Unity supports StepCounter for iOS in their InputSystem though.
Hi @Rene-Damm
I am working on a project now where i am trying to use the StepCounter.
I have confirmed that the stepcounter.current returns AndroidStepCounter:/AndroidStepCounter.
So I should have it enabled. however the StepCounter.current.stepCounter.ReadValue() always returns 0. including a screenshot of my Android Logcat, incase the information there is helpful to anyone. I can’t seem to get anything useful out of it.