So, I am fairly now to Unity and I am creating this simple brick breaker game which i want to export to my phone. The problem is that when i am playing ( i use the accelerometer input to move my paddle on my phone) if i tilt my phone it works for a few trys then the paddle disappears randomly. It moves left and right, (i added quads to the borders and then added coliders to it and it disappeared so then i used the Mathf function and it still happens) Does anyone know why this is happening?
I don’t know enough about your problem to know if this relates, but I have had similar issues with a disappearing sprite in Unity 2d. Once it was because the sprite moved outside of the camera view, which was easy to see and fix. The other time it was because of rotation. I would make sure that your x and y rotations are not going up to the point that the sprite is flat (once again assuming this is in 2d). The other thing is if the z value for position goes low enough a sprite can disappear. If it isn’t any of these, it would help to see screenshots of before and after with the object that is disappearing being selected. It would also help to see the script used to move the object.
I have froze the z and x axis. But i will check the camera view.
Thank you for your help.