buildTargetGroupName | The platform target. |
int[] The array with the Quality Level indexes that are selected for the given platform.
[Editor Only] Obtains an array with the Quality Level indexes that are selected for the given platform.
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.