public void HomeLoadClick() { CanvasTheme.SetActive(false); CanvasHome.SetActive(true); FindObjectOfType <MainCamera>().BackGroundColorFuntion(); FindObjectOfType <ThemeSprite>().ThemeImageFuntion(); }
public void ChangeDocumentTheme(VisualElement documentElement, CanvasTheme canvasTheme, ThemeStyleSheet themeSheet) { m_CurrentCanvasTheme = canvasTheme; m_CurrentCanvasThemeStyleSheetReference = themeSheet; if (themeSheet) { themeSheet.isDefaultStyleSheet = true; } RefreshStyle(documentElement); }
public void ThemeButtonClick() { CanvasHome.SetActive(false); CanvasTheme.SetActive(true); }
public void ChangeDocumentTheme(VisualElement documentElement, CanvasTheme canvasTheme) { m_CurrentCanvasTheme = canvasTheme; RefreshStyle(documentElement); }
public void ChangeDocumentTheme(VisualElement documentElement, CanvasTheme canvasTheme, ThemeStyleSheet themeSheet) { m_CurrentCanvasTheme = canvasTheme; m_CurrentCanvasThemeStyleSheet = themeSheet; RefreshStyle(documentElement); }