Assemblies

Discussion and help for Easy Save 3
Post Reply
giltar
Posts: 8
Joined: Sun Feb 27, 2022 1:07 pm

Assemblies

Post by giltar »

Hi,

so Im really lost. I have wasted many hours trying to solve this with no luck at all. I simply added a new assembly to Easy Save 3 in plugins folder. I added the reference to my project assemblies but I cant get it working. I mean I can run the game in editor but when I try to build it it throws ¨
Assets/Plugins/Easy Save 3/Editor/ES3Postprocessor.cs(3,19): error CS0234: The type or namespace name 'Callbacks' does not exist in the namespace 'UnityEditor' (are you missing an assembly reference?)
When I try to remove the "editor" from platform in the assembly definition my assemblies dont see the refence to ES3 (
Assets/Scripts/SaveSystem/PlayerPositionSaver.cs(26,9): error CS0103: The name 'ES3' does not exist in the current context
).

I tried to reimport all assets, create new project files, reimport ES3 files, none of it works. Also somewhere I read that ES3 uses general assemblies, that should be present in the Plugins folder in some dll. I do not have any dll there nor can I refenrence it (assembly-csharp-firstpass - read it here https://forum.unity.com/threads/easy-sa ... 40/page-30). Should I have it there? How do I get it back to the project?

I trust this is due to something I dont understand about assemblies but I have many more assests that I use that do not generate any issues.

Any help would be appretiated.

Thank you

G
User avatar
Joel
Moodkie Staff
Posts: 4849
Joined: Wed Nov 07, 2012 10:32 pm

Re: Assemblies

Post by Joel »

Hi there, and thanks for getting in contact.

It sounds like you're putting both the Editor and non-Editor code into the same assembly. You would need to create a separate assembly definition for the /Plugins/Easy Save 3/Editor/ folder which should only target the Editor. For more information please see the 'Special folders' and 'Creating an assembly for Editor code' sections of Unity's documentation:

https://docs.unity3d.com/Manual/ScriptC ... al-folders
https://docs.unity3d.com/Manual/ScriptC ... r-assembly

As assembly definition files are part of Unity's functionality rather than ours, and we have no control over them, I recommend seeking further assistance from Unity directly or the Unity Forums as I can only provide very limited assistance.

All the best,
Joel
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
Post Reply