I'm running in to an issue with the view ports location.
I'm creating object at random points outside the view port.
My issue is that objects created on the right and bottom are within the layout, so they get created, but objects created in the top and left are outside the layout and view port and thus the objects are destroyed before they enter view.
I need to move or centre the view port so that I can continue to create objects on all sides of the view port, without the objects being destroyed immediately.
Any help or ideas appreciated.