Show / Hide Table of Contents

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
AdaptationBase
AspectRatioAdaptation
Implements
INotchSimulatorTarget
Inherited Members
AdaptationBase.SafeAreaRelative
AdaptationBase.INotchSimulatorTarget.SimulatorUpdate(Rect, Rect[])
AdaptationBase.Adapt(Single)
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
AdaptationBase.Adapt()
Remarks

This should ended up calling Adapt(Single) somehow in the implementation.

Implements

INotchSimulatorTarget
In This Article
Back to top
A Unity plugin by 5argon from Exceed7 Experiments. Problems/suggestions/contact : 5argon@exceed7.com Discord