I’m having issues with the line trace by channel after packaging my game to android mobile. I haven’t tested it on any other devices such as iOS or tablets. Everything works in the engine play preview modes but when I package my game and load it to my phone, I have an error catch for when the line trace does not work and it fires every time the event is triggered. The line trace is meant to detect when a side of a cube is facing the camera and I am wondering if it is because the object that is being hit by the trace is not visibly on screen. I could not figure out how to detect if it hits the camera itself so I placed a static mesh cube directly behind the camera for the trace to hit. Any insight as to why it does not work on mobile is appreciated.
Do you use Visibilty trace channel?
I’ve tried both camera and visibility trace as well as line trace by profile
I had a problem with Camera trace channel, but then I switched to Visibility and now everything ok.
Maybe somthing wrong with your setup of camera and that cube.
I thought so too but the collisions are set to detect line traces on the camera. It works fine on my laptop and in the other editor preview modes but when I build and open the game on my phone, I can’t get any line traces. I’m thinking it might be detecting my camera differently on the phone than on my pc so I’m going to try detecting what the traces are hitting on my phone (if they hit anything at all)
I figured out my own problem. I wasn’t debugging it correctly and found the trace hit my camera but the name of it was different on my mobile device. thanks for reassuring me!
I’m having a similar problem
I’m launching a game to mobile where I’m line tracing from the characters head to other objects to see if they’ve collided and if so over time destroy that object!! When I build to mobile no line traces show up. I’ve tried projectiles with the exact same logic and still they don’t show up on the screen on mobile! I’m laughing on an iPad but for the life of me can’t figure out why this doesn’t want to function as it does in PIE
I’m launching a game to mobile where I’m line tracing from the characters head to other objects to see if they’ve collided and if so over time destroy that object!! When I build to mobile no line traces show up. I’ve tried projectiles with the exact same logic and still they don’t show up on the screen on mobile! I’m laughing on an iPad but for the life of me can’t figure out why this doesn’t want to function as it does in PIE