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);
}
}
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.
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).