Search found 3 matches

by ly61
Tue Oct 07, 2014 11:25 pm
Forum: (Legacy) Easy Save 2 General Discussion
Topic: Saving to Resources from Editor
Replies: 9
Views: 10589

Re: Saving to Resources from Editor

ah sorry its my other script messed it up. its all been solve now. Thanks! edit: actually, after some more testing I was able to recreate the problem: if I open Unity and refresh the editor window (using the script i posted above) before pressing the play button, the error message about "destro...
by ly61
Tue Oct 07, 2014 12:48 pm
Forum: (Legacy) Easy Save 2 General Discussion
Topic: Saving to Resources from Editor
Replies: 9
Views: 10589

Re: Saving to Resources from Editor

strange... my code is as below. this function is called by an OnEnable function of an EditorWindow public void RefreshWindow() { Debug.Log("RefreshWindow called for ItemGenreEditor window."); string path = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments); if (Application.pl...
by ly61
Tue Oct 07, 2014 2:29 am
Forum: (Legacy) Easy Save 2 General Discussion
Topic: Saving to Resources from Editor
Replies: 9
Views: 10589

Re: Saving to Resources from Editor

hi,
sry for bumping this again as I don't think this is working? when I try to save using editor window, an error message pops out saying "Destroy may not be called from edit mode! Use DestroyImmediate instead." and the function aborted. Am I doing anything wrong?
Thanks!