[Solved]Has any function could set the ViewPort into the special region?

Take a look on this code :

Its not working for me because I am using bones, but for your game using 2d it probably will work.