QualitySettings.resolutionScalingFixedDPIFactor

切换到手册
public static float resolutionScalingFixedDPIFactor ;

描述

在分辨率缩放模式下,该因子用于与指定的目标固定 DPI 相乘,以获得用于该品质设置的实际固定 DPI。

using UnityEngine;

public class StartupExampleScript : MonoBehaviour { void Start() { // Set the target Fixed DPI for this quality setting to be half of the default. QualitySettings.resolutionScalingFixedDPIFactor = 0.5f; } }

另请参阅:Quality Settings