QualitySettings.GetActiveQualityLevelsForPlatform

Switch to Manual

Declaration

public static int[] GetActiveQualityLevelsForPlatform(string buildTargetGroupName);

Parameters

buildTargetGroupName The platform target.

Returns

int[] The array with the Quality Level indexes that are selected for the given platform.

Description

[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.


Did you find this page useful? Please give it a rating: