The name 'ES3' does not exist in the current context

Hi, I’m getting the error “The name ‘ES3’ does not exist in the current context”

I tried reinstalling easy save 3, and that fixed it for a moment, and i was able to save the game. But now its broken again and im getting the same error. Reinstalling a second time did not work.

The Easy Save forum says its a Unity issue, since the package is installed in the Plugins folder and I havent moved anything. Is there any way I can get Unity to see this plugin? Unity 2020.1.4

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class SimpleSave : MonoBehaviour
{
   public GameObject PickupCandyScript;

   public void Save()
   {
    PickupCandy script = PickupCandyScript.GetComponent<PickupCandy>();
    ES3.Save("Candy Count", script.candyCount);
   }
}
  • Do you have other errors in the console?
  • Are you using assembly definitions?

No errors. Actually its weird, because the save function still works, but the script is still giving the error.

I don’t think i have assembly definitions. Just 2 plugins, EasySave 3 and Pixel Crushers Dialogue system.

Where do you see this error, in Unity console or just in an IDE?

Currently its just in the IDE, Visual studio code.

It did appear in console once when re-opening the project, but thats now gone and hasnt returned.

Upgrading my project to 2020.3.2 seems to have fixed the issue now. Hoping it doesnt come back!

Actually the bug is back again. It didnt crop up until i did a “build and run” of my game, then when coming back into unity/visual studio, i get the “does not exist” error for ES3. The scripts still work somehow. So maybe its just a visual studio problem.

Save Issue. Unity 2020.3.14f and Visual Studio Code version 1.64.2

Solved.
Using the same method mentioned in this post.

  • Close Unity

  • Delete .sln and .csproj and close vscode

  • Restart unity and regenerate project file by Edit → Preferences → External Tools → Regenerate Project Files.

Hi!I also have the same problem.I create a script ,put it in Script folder , everthing will be ok.but when i put the script in another folder,which have a assembly definition asset, i will have the problem.I can not find Tools > Easy Save 3 > Enable Assembly Definition Files which write in Getting Started with Easy Save 3 - Easy Save for Unity (moodkie.com).