Skip to content

Commit

Permalink
Add loading message for quick add list.
Browse files Browse the repository at this point in the history
  • Loading branch information
kring committed Dec 8, 2023
1 parent 9042aeb commit affd3ef
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Editor/CesiumEditorWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,17 @@ void DrawQuickAddIonAssetsPanel()
CesiumEditorStyle.quickAddIcon,
"Add this item to the level");

if (CesiumIonServerManager.instance.currentSession.IsLoadingDefaults())
{
GUILayout.BeginHorizontal(CesiumEditorStyle.quickAddItemStyle);
GUILayout.Box(new GUIContent(
"Loading...",
"The list of Quick Add assets is being retrieved from the server."),
EditorStyles.wordWrappedLabel);
GUILayout.FlexibleSpace();
GUILayout.EndHorizontal();
}

List<QuickAddItem> assets = CesiumIonServerManager.instance.currentSession.GetQuickAddItems();
for (int i = 0; i < assets.Count; i++)
{
Expand Down

0 comments on commit affd3ef

Please sign in to comment.