i open new levels with box collider in levels menu, but when i fix different resolutions, box collider doesn’t scale, how can i solve this?
Plz. see Scene…
https://dl.dropboxusercontent.com/u/20513927/level/levelsistem.unitypackage
i open new levels with box collider in levels menu, but when i fix different resolutions, box collider doesn’t scale, how can i solve this?
Plz. see Scene…
https://dl.dropboxusercontent.com/u/20513927/level/levelsistem.unitypackage
Sounds like a proportion problem…
Consider where the box would sit in percentage terms relative to the rest of the screen. Having got your percentages, you then multiply by the actual width/height values. This will work for any situation where proportions are required.
So for example, if you want something in the middle, the percentage value would be 0.5f. A width of 1 gives 0.5. A width of 100 gives 50, but both allow placement in the centre.