기술 자료

Unity Engine

Unity Engine

GetActiveQualityLevelsForPlatform(string)

[Editor Only] Obtains an array with the Quality Level indexes that are selected for the given platform.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

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

Parameters

buildTargetGroupName

The platform target.

Returns

Type

Description

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

Remarks

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.