Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetActiveQualityLevelsForPlatformCount(string)

[Editor Only] Obtains the number of Quality Levels that are selected for a given platform.
Read time 1 minuteLast updated 5 days ago

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public static int GetActiveQualityLevelsForPlatformCount(string buildTargetGroupName)

Parameters

buildTargetGroupName

The platform to obtain the number of selected Quality Levels.

Returns

Type

Description

intThe total amount of Quality Levels active for the given platform.

Remarks

public int GetActiveActiveQualityLevelsForPlatform(BuildTarget platform){ var activeBuildTargetGroup = BuildPipeline.GetBuildTargetGroup(platform); var namedBuildTarget = NamedBuildTarget.FromBuildTargetGroup(activeBuildTargetGroup); return QualitySettings.GetActiveQualityLevelsForPlatformCount(namedBuildTarget.TargetName);}
Returns the count of quality levels that are including the given platform.