void processDisclaimerArea(){ disclaimerVisible = EditorGUILayout.Foldout(disclaimerVisible, GuiContents.disclaimerSection); if (!disclaimerVisible) return; using(var tmp = ExportGuiUtility.scopedGuiEnabled(false)){ EditorGUILayout.TextArea(getDisclaimerText(), guiStyles.disclaimerTextArea); } if (GUILayout.Button("View full Disclaimer")){ DisclaimerWindow.openDisclaimerWindow(); } }
public static void showDisclaimerWindow() { DisclaimerWindow.openDisclaimerWindow(); }