Feel
4.3
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 { Modes.Fixed, Modes.ScreenRatio } |
Public Member Functions | |
virtual void | ApplyAspectRatio () |
Applies the specified aspect ratio More... | |
Public Attributes | |
Camera | TargetCamera |
the camera to change the aspect ratio on More... | |
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 More... | |
Vector2 | FixedAspectRatio = Vector2.zero |
in fixed mode, the ratio to apply to the camera More... | |
bool | ApplyAspectRatioOnStart = true |
whether or not to apply the ratio automatically on Start More... | |
bool | ApplyAspectRatioOnEnable = false |
whether or not to apply the ratio automatically on enable More... | |
bool | ApplyAspectRatioButton |
Protected Member Functions | |
virtual void | OnEnable () |
On enable we apply our aspect ratio if needed More... | |
virtual void | Start () |
On start we apply our aspect ratio if needed More... | |
Protected Attributes | |
float | _defaultAspect = 16f / 9f |
Forces an aspect ratio on a camera
|
strong |
|
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