![]() |
Feel 5.9.1
The best way to improve your game's feel and make it extra juicy
|
Forces an aspect ratio on a camera. More...
Public Types | |
| enum | Modes { Fixed , ScreenRatio } |
Public Member Functions | |
| virtual void | ApplyAspectRatio () |
| Applies the specified aspect ratio. | |
Public Attributes | |
| Camera | TargetCamera |
| the camera to change the aspect ratio on | |
| Modes | Mode = Modes.Fixed |
| the mode of choice, fixed will force a specified ratio, while ScreenRatio will adapt the camera's aspect to the current screen ratio | |
| Vector2 | FixedAspectRatio = Vector2.zero |
| in fixed mode, the ratio to apply to the camera | |
| bool | ApplyAspectRatioOnStart = true |
| whether or not to apply the ratio automatically on Start | |
| bool | ApplyAspectRatioOnEnable = false |
| whether or not to apply the ratio automatically on enable | |
| bool | ApplyAspectRatioButton |
Protected Member Functions | |
| virtual void | OnEnable () |
| On enable we apply our aspect ratio if needed. | |
| virtual void | Start () |
| On start we apply our aspect ratio if needed. | |
Protected Attributes | |
| float | _defaultAspect = 16f / 9f |
Forces an aspect ratio on a camera.
|
virtual |
Applies the specified aspect ratio.
|
protectedvirtual |
On enable we apply our aspect ratio if needed.
|
protectedvirtual |
On start we apply our aspect ratio if needed.
|
protected |
| bool MoreMountains.Tools.MMCameraAspectRatio.ApplyAspectRatioButton |
| bool MoreMountains.Tools.MMCameraAspectRatio.ApplyAspectRatioOnEnable = false |
whether or not to apply the ratio automatically on enable
| bool MoreMountains.Tools.MMCameraAspectRatio.ApplyAspectRatioOnStart = true |
whether or not to apply the ratio automatically on Start
| Vector2 MoreMountains.Tools.MMCameraAspectRatio.FixedAspectRatio = Vector2.zero |
in fixed mode, the ratio to apply to the camera
| Modes MoreMountains.Tools.MMCameraAspectRatio.Mode = Modes.Fixed |
the mode of choice, fixed will force a specified ratio, while ScreenRatio will adapt the camera's aspect to the current screen ratio
| Camera MoreMountains.Tools.MMCameraAspectRatio.TargetCamera |
the camera to change the aspect ratio on