Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 public static ISTD SaveToAssets(this ISTD s, string Path, string filename)
 {
     StuffSaver.Save_ToAssets_ByRelativePath(Path, filename, s.Encode().ToString());
     return(s);
 }
Exemplo n.º 3
0
 public static ISTD SaveToResources(this ISTD s, string ResFolderPath, string InsideResPath, string filename)
 {
     StuffSaver.SaveToResources(ResFolderPath, InsideResPath, filename, s.Encode().ToString());
     return(s);
 }
Exemplo n.º 4
0
 public static ISTD SaveToPersistantPath(this ISTD s, string path, string filename)
 {
     StuffSaver.SaveToPersistantPath(path, filename, s.Encode().ToString());
     return(s);
 }