找回密码
 立即注册
搜索

[编辑器/功能拓展] Camera Fit: Screen Handler 1.1摄像机屏幕适配器

[复制链接]
188 |0
发表于 2023-4-11 15:36:08 | 显示全部楼层 |阅读模式








Works with Unity 4.6, 5, 2017, 2018 and above.
Camera Fit is the easy way to handle screen aspect ratio for different devices, screens and window sizes!
Works on Mobile devices and all other platforms.
Supports both, orthographic (2D) and perspective (3D) cameras.

Has three different modes:
    - Fixed height (pillarboxed) - Unity default.
    - Fixed width (letterboxed).
    - Dynamic (pillarboxed/letterboxed, depending on screen aspect ratio).

With the Dynamic mode, a specified area (main game area) will always be visible, no matter what screen/window size you choose - the Camera Fit component will adjust the frustum to always keep that area on-screen.

The Dynamic mode also lets you snap the main game area to the edges of the screen vertically/horizontally or always keep it in the middle.


适用于Unity 4.6, 5, 2017, 2018及以上版本。
相机适合是处理屏幕纵横比不同的设备,屏幕和窗口大小的简单方法!
适用于移动设备和所有其他平台。
同时支持正字法(2D)和透视(3D)相机。

有三种不同的模式:
-固定高度(pillarboxed) - Unity默认。
-固定宽度(字母盒)。
动态(柱箱/信箱,取决于屏幕纵横比)

在动态模式下,一个特定的区域(主游戏区域)将始终可见,无论你选择什么屏幕/窗口大小-相机适合组件将调整截锥,以始终保持该区域在屏幕上。

动态模式还允许你将主要游戏区域垂直/水平地固定在屏幕边缘,或者始终保持在中间。





回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

快速回复 返回顶部 返回列表