ThemesDatabase
class in Doozy.Engine.Themes / Inherits from ScriptableObject
Description
The ThemesDatabase is a global themes database that contains references to ThemeData assets, used by the theme management system to keep track and retrieve all the registered themes
Public Methods
-
public ThemeVariantData GetVariant(Guid variantId) – Get the ThemeVariantData by Guid
-
public void Initialize() – Add the ‘General’ theme if it does not exist and initializes it
-
public bool ResetDatabase() – Reset the database to the default values
Static Methods
-
public static string[]?GetThemesNames(ThemesDatabase database) – Get a string array of all the theme names found in the database