public override void OnInspectorGUI() { if (GUILayout.Button("Open Editor")) { ButtDataEditorWindow.Open((ButtData)target); } }
public static void Open(ButtData buttData) { ButtDataEditorWindow window = GetWindow <ButtDataEditorWindow>("Butt Data Editor"); }