How To: Read Sensor Values via the new InputSystem on an android device,How to: Use Sensors with InputSystem.StepCounter from an android device
Hello,
is there an example or a tutorial how to read e.g. steps with the StepCounter from InputSystem? StepCounter.current is always null. Or if I add in via INputDebugger to Devices then its exists, but the ReadValue() is always 0. With other Sensors it's the same thing. I always get the default value when i trie to read the values. I am using an android device.
Thanks
I'm wondering the same. I've rummaged the API documentation for the InputSystem's StepCounter but the actual sample usage syntax itself is not even there.
Somebody, help.
Answer by wielandm29 · Dec 16, 2020 at 06:54 PM
You have to enable the sensors in your scrip. https://docs.unity3d.com/Packages/com.unity.inputsystem@1.1/manual/Sensors.html
Your answer
Follow this Question
Related Questions
How to disable back button in android during unity splash screen display? 0 Answers
Having an issue with touch input lag on certain Android devices, any help? 1 Answer
Android keyboard from Input Field disappears immediatly after appearing 0 Answers
Cannot get value from sensor as Android background service 0 Answers