GetActiveQualityLevelsForPlatform(string)
[Editor Only] Obtains an array with the Quality Level indexes that are selected for the given platform.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
public static int[] GetActiveQualityLevelsForPlatform(string buildTargetGroupName)
Parameters
The platform target.
Returns
Type | Description |
|---|---|
| int[] | The array with the Quality Level indexes that are selected for the given platform. |
Remarks
public int[] GetActiveQualityLevelsForPlatform(BuildTarget platform){ var activeBuildTargetGroup = BuildPipeline.GetBuildTargetGroup(platform); var namedBuildTarget = NamedBuildTarget.FromBuildTargetGroup(activeBuildTargetGroup); return QualitySettings.GetActiveQualityLevelsForPlatform(namedBuildTarget.TargetName);}
Obtains the indexes that where a given platform is included.