public override void OnInspectorGUI() { base.OnInspectorGUI(); StaticDataConfig config = target as StaticDataConfig; if (GUILayout.Button("Create Config Data")) { config.m_styleConfigData = StyleDataCreatorUtils.CreateStyleConfigData(); } }
private void OnGUI() { if (GUILayout.Button("Create ID tex")) { m_TestAreaIdTex = CanvasHelper.CreateIDTex(128); CanvasHelper.WritePngFile(m_TestAreaIdTex, "PixelMergeEffect/Texture/IDTex.png"); } if (GUILayout.Button("Test show main styles")) { string mainStyleList = StyleDataCreatorUtils.CreateCachedMainStyleList(); Debug.Log("mainStyleList = " + mainStyleList); } if (GUILayout.Button("Test show cached config data")) { StyleDataCreatorUtils.CreateStyleConfigData(); } }