Skip to content

Commit

Permalink
Add server selector to Cesium ion assets panel.
Browse files Browse the repository at this point in the history
  • Loading branch information
kring committed Nov 29, 2023
1 parent 0afa08a commit 8eea97a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Editor/CesiumIonAssetsWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,12 @@ void DrawAssetListPanel()
void DrawRefreshButtonAndSearchBar()
{
GUILayout.BeginHorizontal();

GUILayout.BeginVertical(GUILayout.Width(300.0f));
GUILayout.Space(15.0f);
CesiumIonServerUI.Selector();
GUILayout.EndVertical();

if (GUILayout.Button(
new GUIContent(CesiumEditorStyle.refreshIcon, "Refresh the asset list"),
CesiumEditorStyle.refreshButtonStyle))
Expand All @@ -106,7 +112,8 @@ void DrawRefreshButtonAndSearchBar()

string searchString = this._searchField.OnToolbarGUI(
this._assetsSearchString,
GUILayout.Height(EditorGUIUtility.singleLineHeight)
GUILayout.Height(EditorGUIUtility.singleLineHeight),
GUILayout.Width(150.0f)
);

if (searchString != null)
Expand Down

0 comments on commit 8eea97a

Please sign in to comment.