UIContentScaler
Namespace:FairyGUI
Source:Assets/Scripts/UI/UIContentScaler.cs (line 8)
public class UIContentScaler : MonoBehaviour
Fields
constantScaleFactor
public float constantScaleFactor;
Source:UI/UIContentScaler.cs (line 65)
defaultSpriteDPI
public int defaultSpriteDPI;
Source:UI/UIContentScaler.cs (line 60)
designResolutionX
public int designResolutionX;
Source:UI/UIContentScaler.cs (line 45)
designResolutionY
public int designResolutionY;
Source:UI/UIContentScaler.cs (line 50)
fallbackScreenDPI
public int fallbackScreenDPI;
Source:UI/UIContentScaler.cs (line 55)
ignoreOrientation
public bool ignoreOrientation;
当false时,计算比例时会考虑designResolutionX/Y的设置是针对横屏还是竖屏。否则不考虑。
Source:UI/UIContentScaler.cs (line 70)
scaleFactor
public static float scaleFactor;
Source:UI/UIContentScaler.cs (line 73)
scaleLevel
public static int scaleLevel;
Source:UI/UIContentScaler.cs (line 76)
scaleMode
public ScaleMode scaleMode;
Source:UI/UIContentScaler.cs (line 35)
screenMatchMode
public ScreenMatchMode screenMatchMode;
Source:UI/UIContentScaler.cs (line 40)
Methods
ApplyChange()
public void ApplyChange();
Source:UI/UIContentScaler.cs (line 144)
ApplyModifiedProperties()
public void ApplyModifiedProperties();
Source:UI/UIContentScaler.cs (line 136)