/// @param popupID /// popup ID to present /// @param [optional] layerable /// If this popup allows other popups to be displayed on top of it. Defaults to true. /// /// @return The created PopupView. Null if the prefab could not be loaded /// public PopupView QueuePopup(string popupID, bool layerable = true) { PopupView popupView = CreatePopup(popupID); if (popupView != null) { popupView.m_layerable = layerable; popupView.Hide(); m_popupQueue.Add(popupView); UpdatePopupVisiblities(); } return(popupView); }
/// @param popupID /// popup ID to present /// /// @return The created PopupView. Null if the prefab could not be loaded /// public PopupView QueueToastPopup(string popupID) { PopupView popupView = CreatePopup(popupID); if (popupView != null) { popupView.m_layerable = true; popupView.m_toast = true; popupView.Hide(); m_toastsPopupQueue.Add(popupView); UpdatePopupVisiblities(); } return(popupView); }