public override void OnInspectorGUI() { var script = target as FlexibleUIData; if (GUILayout.Button("Update In Editor")) { FlexibleUI.RefreshAll(script); } GUILayout.Space(10); DrawDefaultInspector(); }
public override void OnInspectorGUI() { var script = target as FlexibleUI; DrawDefaultInspector(); GUILayout.BeginHorizontal(); if (GUI.changed) { FlexibleUI.UpdateSkin(script); } //if (GUILayout.Button("Update This")) //{ // FlexibleUI.UpdateSkin(script); //} if (GUILayout.Button("Update All")) { FlexibleUI.RefreshAll(script.skinData); } GUILayout.EndHorizontal(); }