文档

Unity Engine

Unity Engine

activeNamedBuildTarget

The platform settings the Editor is configured for.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Property
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
public static NamedBuildTarget activeNamedBuildTarget { get; }

Remarks

Use this property to read or change the platform settings the Editor is set to build for, for example with PlayerSettings. The value combines EditorUserBuildSettings.activeBuildTarget with the active subtarget, so a dedicated server configuration reports NamedBuildTarget.Server instead of NamedBuildTarget.Standalone.