QualitySettings.IsPlatformIncluded

Switch to Manual

Declaration

public static bool IsPlatformIncluded(string buildTargetGroupName, int index);

Parameters

buildTargetGroupName The platform name.
index The index of the Quality Level, must be positive and lower than the count of Quality Levels.

Returns

bool If the platform is included.

Description

[Editor Only] Returns if the given platform is included by the Quality Level.

    public bool IsPlatformIcluded(BuildTarget platform, int index)
    {
        var activeBuildTargetGroup = BuildPipeline.GetBuildTargetGroup(platform);
        var namedBuildTarget = NamedBuildTarget.FromBuildTargetGroup(activeBuildTargetGroup);
        return QualitySettings.IsPlatformIncluded(namedBuildTarget.TargetName, index);
    }

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