Documentation

Unity Engine

Download Unity

Unity Engine

activeNamedBuildTarget

The platform settings the Editor is configured for.
Read time 1 minuteLast updated a month ago

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.