The name `buildTargets' does not exist in the Current context

Asked

Viewed 157 times

1

EditorWindowIntegration.cs(30,4): error CS0103: The namebuildTargets' does not exist in the Current context`

public class EbsEditorWindowIntegration : EditorWindow
{
    #region Private Fields
    private List<BuildTargetGroup> Targets;
    private Vector2 ScrollPosition;

    [SerializeField]
    private List<string> Integrations = new List<string>();

#endregion Private Fields

#region Private Methods

    private void OnEnable()
    {
        Targets = new List<BuildTargetGroup>();
#if UNITY_5
        Targets.Add(BuildTargetGroup.iOS);
        Targets.Add(BuildTargetGroup.WebGL);
#else
        buildTargets.Add (BuildTargetGroup.iPhone);
#endif
    Targets.Add(BuildTargetGroup.Standalone);
    Targets.Add(BuildTargetGroup.Android);
}
  • What language is that?

  • It seems like Csharp ..

  • Unknown even in question tag

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.