I’m trying to use Arduino to make a game that reacts to input from the outside world. Right now, I’m in the testing stages, and have a single photo-receptor hooked up. The idea is that when I touch it, it causes a matinee actor to activate and move a box upwards. I downloaded and installed the Arduino plugin for Unreal, and set up my level blueprint to look like this:
However, the statement never seems to register as true, even when the serial output from Arduino is over 900. When I change it so that the Matinee activates when the statement registers as false, however, the matinee activates immediately. As near as I can tell, the string being read is not being converted into a float. How do I fix this? Or is there something else I may be doing wrong?
To those who read this, thank you for your consideration.