Originally developed for a Game Jam game and then expanded upon, this system will confine an object to the bounds of a camera which scales on the current resolution and dimensions of the targeted camera.
There are also options that will move the target camera when the object hits an edge on all 3 axis for both normal and top-down views. the camera can either move indefinitely or remain fixed in place.