/// <summary> /// Refreshes GUI elements upon theme change /// </summary> public void RefreshGuiElements() { GameObject[] refreshItems = GameObject.FindGameObjectsWithTag("RefreshOnThemeUpdate"); foreach (GameObject refreshObject in refreshItems) { try { BackButton back = refreshObject.GetComponent <BackButton>(); back.Refresh(); } catch (Exception) { continue; } } }