Class AspectRatioAdaptation
Like SafeAdaptation but use the current screen aspect ratio number instead. The ratio is width/height ratio when on landscape orientation (e.g. 4/3, 16/9, 2/1) regardless of your game's orientation.
Inheritance
System.Object
UnityEngine.Object
UnityEngine.Component
UnityEngine.Behaviour
UnityEngine.MonoBehaviour
AspectRatioAdaptation
Implements
Inherited Members
Namespace: E7.NotchSolution
Assembly: E7.NotchSolution.dll
Syntax
[HelpURL("https://exceed7.com/notch-solution/components/adaptation/aspect-ratio-adaptation.html")]
public class AspectRatioAdaptation : AdaptationBase, INotchSimulatorTarget
Remarks
By default, the curve is setup so that lower aspect ratio (wider screen) is "normal" and higher number (narrower screen) is "adapted". So the leftmost node in the curve represents a device like an iPad.
Methods
Adapt()
Any adaptation component will be "adapted" only once on Start()
, but
this call could make that happen again on-demand.
Declaration
public override void Adapt()
Overrides
Remarks
This should ended up calling Adapt(Single) somehow in the implementation.