Create maximize window button

Hello all. I have a script that launches a movie on a plane. I’m trying to implement a maximize window button. I was just wondering what the best method to do this would be. Should I just create a button that moves the object closer to the camera until it takes up the entire view (or moves the camera closer to the object)? Or is there a simpler way to do this?

try putting a second camera in front of the projection and then writing a code that switches between cameras here is a link to this code on unify community