文档

Unity Engine

Unity Engine

name

Name of the build target.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Property
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
public string name { get; set; }

Remarks

Refer to NamedBuildTarget for a list of valid build targets. To get the name of a build target as a string, use the
TargetName
property. For example,
UnityEditor.Build.NamedBuildTarget.Standalone.TargetName
.