ドキュメント

Unity Engine

Unity Engine

GetActiveQualityLevelsForPlatformCount(string)

[Editor Only] Obtains the number of Quality Levels that are selected for a given platform.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

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.