public override void OnXGUI() { if (CreateSpaceButton("Save Asset")) { XResources.SaveAll(); } // DoButton("Get Cursor EditorIcon", ()=> isShowIcons = !isShowIcons); // // if(isShowIcons) ShowAllIcon(); BeginHorizontal(); DoButton("persistentDataPath", () => { EditorUtility.RevealInFinder(Application.persistentDataPath); }); DoButton("temporaryCachePath", () => { EditorUtility.RevealInFinder(Application.temporaryCachePath); }); DoButton("dataPath", () => { EditorUtility.RevealInFinder(Application.dataPath); }); DoButton("streamingAssetsPath", () => { EditorUtility.RevealInFinder(Application.streamingAssetsPath); }); string time = System.DateTime.Now.ToString(); EndHorizontal(); Time.timeScale = CreateFloatField("TimeScale", Time.timeScale); Application.targetFrameRate = CreateIntField("FrameRate", Application.targetFrameRate); }
public override void OnXGUI() { if (CreateSpaceButton("Save Asset")) { XResources.SaveAll(); } DoButton("ShowAllIcon", () => isShowIcons = !isShowIcons); if (isShowIcons) { ShowAllIcon(); } }
void SaveAssets() { XResources.SaveAll(); }