Can't load `ES3 Default Settings.prefab` properly
Posted: Fri Jan 08, 2021 4:54 am
Hi.
i download the last version (3.3.1f12) from asset store and import into a new project. i need use Obfuscator to encrypt my code. so i put all third part plugin in Plugins folder.
that will make ES3 project folder to `Plugins\Easy Save 3\xxxx`
but if i do that in Unity 2020.1.17(i don't is old version have the same issue or not.)
ES3Settings.cs line 228
it try to load the ES3 Default Settings.prefab with Resources.Load. but maybe due to the assembly or other things . it seemed can't load that way. if the Resources folder is under Plugins folder.
so . i just put the ES3 Default Settings.prefab outside with ordinary `Resources` folder `Assets/Resources/ES3/ES3 Default Settings.prefab`
but in SettingsWindow.cs init funciton
it try to locate the file with `ES3Window` file path.
so ,again . i have to change this line code with
it's not a big deal to me . everything work fine now. but i think maybe somebody will have the same issue like me.
so just wrote this to let you know.
Cheers
Eran
i download the last version (3.3.1f12) from asset store and import into a new project. i need use Obfuscator to encrypt my code. so i put all third part plugin in Plugins folder.
that will make ES3 project folder to `Plugins\Easy Save 3\xxxx`
but if i do that in Unity 2020.1.17(i don't is old version have the same issue or not.)
ES3Settings.cs line 228
Code: Select all
public static ES3DefaultSettings GetDefaultSettings()
{
var go = Resources.Load<GameObject>("ES3/ES3 Default Settings");
xxxxx
}
so . i just put the ES3 Default Settings.prefab outside with ordinary `Resources` folder `Assets/Resources/ES3/ES3 Default Settings.prefab`
but in SettingsWindow.cs init funciton
Code: Select all
(GameObject)AssetDatabase.LoadMainAssetAtPath(ES3EditorUtility.PathToDefaultSettings());
so ,again . i have to change this line code with
Code: Select all
defaultSettingsGo = (GameObject) AssetDatabase.LoadMainAssetAtPath("Assets/Resources/ES3/ES3 Default Settings.prefab");
so just wrote this to let you know.
Cheers
Eran