buildTargetGroupName | The platform name. |
index | The index of the Quality Level, must be positive and lower than the count of Quality Levels. |
bool If the platform is included.
[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); }