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