I need help how can i bound an object to the window. I dont want it leaving the screen. Please help
Using Anchors would be helpful
Have a eye on this Here
If the object is meant to be a GUI object, you can also just create a new layer and put the objects on that layer.
Cameras are layer specific, so if you don’t move the new layer’s camera, the objects will stay on the screen.
This way you don’t have to worry about any extra events/anchor behaviors.