2D Toolkit Forum
2D Toolkit => Support => Topic started by: wagenheimer on April 14, 2014, 02:25:38 pm
-
I need this behavior is this possible?
- I created the game using 1920x1080 resolution. 1,77 proportion.
- If the proportion is smaller, I want it to "cute out" the borders out to fit the proportions! This already works, I set "Fit Height" on Tk2dCamera.
- But, if the proportion is bigger, actually it add black borders to it, and I do not want it! I want instead of adding Black Borders that it Stretch the current Camera to fit the whole screen.
To sum it up :
- Keep the Height Proportion, cutting out the borders if is need, or stretch it if need instead of adding black borders.
Is it possible?
-
Not possible in the UI, but you can attach a script to the tk2dCamera to do this easy enough. What you need to do is create just one override, and then change tk2dCamera.CurrentResolutionOverride as you see fit.