public void OnGUI() { if (dialogDirectorySelector != null) { dialogDirectorySelector.OnGUI(); } float lWifthPadding = GuiStyleSet.StyleFolder.background.padding.left + GuiStyleSet.StyleFolder.background.padding.right; float lWifthMargin = GuiStyleSet.StyleFolder.background.margin.left + GuiStyleSet.StyleFolder.background.margin.right; float lWidth = GuiStyleSet.StyleFolder.buttonFolder.CalcSize(new GUIContent("")).x + lWifthPadding + lWifthMargin; GUILayout.BeginHorizontal(); { if (GUILayout.Button(new GUIContent("", "StyleFolder.ButtonFolder"), GuiStyleSet.StyleFolder.buttonFolder) == true) { dialogDirectorySelector = new DialogDirectorySelect(ChangeDirectory, directoryInfoRecentList); dialogDirectorySelector.Awake(); } GUILayout.TextArea(directoryInfoRecentList[0].FullName, GuiStyleSet.StyleFolder.text, GUILayout.Width(Screen.width / 2.0f - lWidth - 160.0f)); } GUILayout.EndHorizontal(); }
public override void Select() { isShow = true; dialogDirectorySelector.Awake(); }