文档

Unity Engine

Unity Engine

ToString()

Formats this Android SDK version as a string.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
public override string ToString()

Returns

Type

Description

stringThe version string in
Major.Minor
format if
Minor
is greater than 0,
Major
format otherwise, or the string "AndroidApiLevelAuto" for AndroidSdkVersionFull.AndroidApiLevelAuto.

Remarks

Unity uses this format, for example
36.1
or
36
, when writing a compile SDK version to a Gradle file through CompileSdkSpec.