Page 1 of 1

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

Posted: Sat Oct 16, 2021 5:28 pm
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);
   } 
}

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

Posted: Sat Oct 16, 2021 6:24 pm
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

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

Posted: Sat Oct 16, 2021 8:27 pm
by manta__fanta
Ok, got it. Thank you. I'll see if the Unity forum has any answers :D