public bool PEGI() { bool changed = false; if (dataExplorer.inspectedTag == -1) { this.inspect_Name(); if (Std != null && dataExplorer.tag.Length > 0 && icon.Save.Click("Save To Assets")) { StuffSaver.Save_ToAssets_ByRelativePath(Mgmt.fileFolderHolder, dataExplorer.tag, dataExplorer.data); UnityHelperFunctions.RefreshAssetDatabase(); } pegi.nl(); if (Std != null) { if (dataExplorer.tag.Length == 0) { dataExplorer.tag = Std.ToPEGIstring() + " config"; } "Save To:".edit(50, ref Mgmt.fileFolderHolder); var uobj = Std as UnityEngine.Object; if (uobj && icon.Done.Click("Use the same directory as current object.")) { Mgmt.fileFolderHolder = uobj.GetAssetFolder(); } uobj.clickHighlight(); pegi.nl(); } "Comment:".editBig(ref comment).nl(); } dataExplorer.Nested_Inspect(); return(changed); }
public static ISTD SaveToAssets(this ISTD s, string Path, string filename) { StuffSaver.Save_ToAssets_ByRelativePath(Path, filename, s.Encode().ToString()); return(s); }