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

Discussion and help for Easy Save 3
Post Reply
manta__fanta
Posts: 7
Joined: Sat Oct 16, 2021 5:20 pm

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

Post by manta__fanta »

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.

I havent moved anything out of the plugins folder. Unity 2020.1.4

Code: Select all

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);
   } 
}
User avatar
Joel
Moodkie Staff
Posts: 4826
Joined: Wed Nov 07, 2012 10:32 pm

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

Post by Joel »

Hi there,

Compilation is controlled at Unity's end rather than ours, so I'm afraid this would be a question for Unity rather than ourselves. We simply put our files in Assets/Plugins/ folder; it's Unity's responsibility to compile them. As an example of this, you can create your own script and put it in Assets/Plugins/ and the same error will occur when you try to access it.

I recommend contacting Unity directly or asking on the Unity forums regarding this, stating that the scripts are in Assets/Plugins/. Unity will have the tools to be able to debug this.

You should also check there are no other errors in the console, as compilation errors will prevent Unity from compiling other scripts such as Easy Save's scripts.

All the best,
Joel
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
manta__fanta
Posts: 7
Joined: Sat Oct 16, 2021 5:20 pm

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

Post by manta__fanta »

Ok, got it. Thank you. I'll see if the Unity forum has any answers :D
Post Reply