Configuration for the asset. More...

Static Public Member Functions

static void Reset ()
 Resets all changeable variables to their default value. More...
 
static void Load ()
 Loads the all changeable variables. More...
 
static void Save ()
 Saves the all changeable variables. More...
 

Static Public Attributes

static string PATH_BACKUP_SLOT => FileHelper.ValidatePath($"{PATH_BACKUP}{CURRENT_SLOT}")
 
static bool isLoaded
 Is the configuration loaded? More...
 

Properties

static bool CUSTOM_PATH_BACKUP = Constants.DEFAULT_CUSTOM_PATH_BACKUP [get, set]
 Enable or disable custom location for the backup. More...
 
static string? PATH_BACKUP [get, set]
 
static int VCS [get, set]
 Selected VCS-system (default: 0, 0 = none, 1 = git, 2 = SVN, 3 Mercurial, 4 = Collab, 5 = PlasticSCM). More...
 
static bool USE_LEGACY = Constants.DEFAULT_USE_LEGACY [get, set]
 Uses the legacy switch function. More...
 
static bool BATCHMODE = Constants.DEFAULT_BATCHMODE [get, set]
 Enable or disable batch mode for CLI operations. More...
 
static bool QUIT = Constants.DEFAULT_QUIT [get, set]
 Enable or disable quit Unity Editor for CLI operations. More...
 
static bool NO_GRAPHICS = Constants.DEFAULT_NO_GRAPHICS [get, set]
 Enable or disable graphics device in Unity Editor for CLI operations. More...
 
static string EXECUTE_METHOD_PRE_BACKUP = string.Empty [get, set]
 Execute static method 'ClassName.MethodName' in Unity before a backup. More...
 
static string EXECUTE_METHOD_BACKUP = string.Empty [get, set]
 Execute static method 'ClassName.MethodName' in Unity after a backup. More...
 
static string EXECUTE_METHOD_PRE_RESTORE = string.Empty [get, set]
 Execute static method 'ClassName.MethodName' in Unity before a restore. More...
 
static string EXECUTE_METHOD_RESTORE = string.Empty [get, set]
 Execute static method 'ClassName.MethodName' in Unity after a restore. More...
 
static bool DELETE_LOCKFILE = Constants.DEFAULT_DELETE_LOCKFILE [get, set]
 Enable or disable deleting the 'UnityLockfile'. More...
 
static bool COPY_ASSETS = Constants.DEFAULT_COPY_ASSETS [get, set]
 Enable or disable copying the 'Assets'-folder. More...
 
static bool COPY_LIBRARY = Constants.DEFAULT_COPY_LIBRARY [get, set]
 Enable or disable copying the 'Library'-folder. More...
 
static bool COPY_SETTINGS = Constants.DEFAULT_COPY_SETTINGS [get, set]
 Enable or disable copying the 'ProjectSettings'-folder. More...
 
static bool COPY_USER_SETTINGS = Constants.DEFAULT_COPY_USER_SETTINGS [get, set]
 Enable or disable copying the 'UserSettings'-folder. More...
 
static bool COPY_PACKAGES = Constants.DEFAULT_COPY_PACKAGES [get, set]
 Enable or disable copying the 'Packages'-folder. More...
 
static int THREADS [get, set]
 Threads for the switch operation (range: 2-128). More...
 
static bool CONFIRM_BACKUP = Constants.DEFAULT_CONFIRM_BACKUP [get, set]
 Enable or disable the backup confirmation dialog. More...
 
static bool CONFIRM_RESTORE = Constants.DEFAULT_CONFIRM_RESTORE [get, set]
 Enable or disable the restore confirmation dialog. More...
 
static bool CONFIRM_WARNING = Constants.DEFAULT_CONFIRM_WARNING [get, set]
 Enable or disable the restore warning confirmation dialog. More...
 
static bool DEBUG = Constants.DEFAULT_DEBUG [get, set]
 Enable or disable debug logging for the asset. More...
 
static bool UPDATE_CHECK = Constants.DEFAULT_UPDATE_CHECK [get, set]
 Enable or disable update-checks for the asset. More...
 
static bool COMPILE_DEFINES = Constants.DEFAULT_COMPILE_DEFINES [get, set]
 Enable or disable adding compile define "CT_TB" for the asset. More...
 
static System.DateTime BACKUP_DATE [get, set]
 Backup date. More...
 
static int BACKUP_COUNT [get, set]
 Backup counter. More...
 
static string BACKUP_NOTE_NEW [get, set]
 New backup note. More...
 
static string BACKUP_NOTE [get, set]
 Backup note. More...
 
static System.DateTime RESTORE_DATE [get, set]
 Restore date. More...
 
static int RESTORE_COUNT [get, set]
 Restore counter. More...
 
static System.DateTime SETUP_DATE [get, set]
 Last setup date. More...
 
static bool AUTO_SAVE = Constants.DEFAULT_AUTO_SAVE [get, set]
 Enable or disable automatic saving of all scenes. More...
 
static System.DateTime AUTO_BACKUP_DATE [get, set]
 Auto backup date. More...
 
static int AUTO_BACKUP_INTERVAL [get, set]
 Auto backup interval (default: 0, 0 = disabled, range: 0-300). More...
 
static int SLOTS [get, set]
 Number of backup slots (default: 1, range: 1-16). More...
 
static int CURRENT_SLOT [get, set]
 Current backup slot. More...
 
static string ASSET_PATH [get]
 Returns the path to the asset inside the Unity project. More...
 

Detailed Description

Configuration for the asset.

Member Function Documentation

◆ Load()

static void Crosstales.TB.Util.Config.Load ( )
static

Loads the all changeable variables.

◆ Reset()

static void Crosstales.TB.Util.Config.Reset ( )
static

Resets all changeable variables to their default value.

◆ Save()

static void Crosstales.TB.Util.Config.Save ( )
static

Saves the all changeable variables.

Member Data Documentation

◆ isLoaded

bool Crosstales.TB.Util.Config.isLoaded
static

Is the configuration loaded?

Property Documentation

◆ ASSET_PATH

string Crosstales.TB.Util.Config.ASSET_PATH
staticget

Returns the path to the asset inside the Unity project.

Returns
The path to the asset inside the Unity project.

◆ AUTO_BACKUP_DATE

System.DateTime Crosstales.TB.Util.Config.AUTO_BACKUP_DATE
staticgetset

Auto backup date.

◆ AUTO_BACKUP_INTERVAL

int Crosstales.TB.Util.Config.AUTO_BACKUP_INTERVAL
staticgetset

Auto backup interval (default: 0, 0 = disabled, range: 0-300).

◆ AUTO_SAVE

bool Crosstales.TB.Util.Config.AUTO_SAVE = Constants.DEFAULT_AUTO_SAVE
staticgetset

Enable or disable automatic saving of all scenes.

◆ BACKUP_COUNT

int Crosstales.TB.Util.Config.BACKUP_COUNT
staticgetset

Backup counter.

◆ BACKUP_DATE

System.DateTime Crosstales.TB.Util.Config.BACKUP_DATE
staticgetset

Backup date.

◆ BACKUP_NOTE

string Crosstales.TB.Util.Config.BACKUP_NOTE
staticgetset

Backup note.

◆ BACKUP_NOTE_NEW

string Crosstales.TB.Util.Config.BACKUP_NOTE_NEW
staticgetset

New backup note.

◆ BATCHMODE

bool Crosstales.TB.Util.Config.BATCHMODE = Constants.DEFAULT_BATCHMODE
staticgetset

Enable or disable batch mode for CLI operations.

◆ COMPILE_DEFINES

bool Crosstales.TB.Util.Config.COMPILE_DEFINES = Constants.DEFAULT_COMPILE_DEFINES
staticgetset

Enable or disable adding compile define "CT_TB" for the asset.

◆ CONFIRM_BACKUP

bool Crosstales.TB.Util.Config.CONFIRM_BACKUP = Constants.DEFAULT_CONFIRM_BACKUP
staticgetset

Enable or disable the backup confirmation dialog.

◆ CONFIRM_RESTORE

bool Crosstales.TB.Util.Config.CONFIRM_RESTORE = Constants.DEFAULT_CONFIRM_RESTORE
staticgetset

Enable or disable the restore confirmation dialog.

◆ CONFIRM_WARNING

bool Crosstales.TB.Util.Config.CONFIRM_WARNING = Constants.DEFAULT_CONFIRM_WARNING
staticgetset

Enable or disable the restore warning confirmation dialog.

◆ COPY_ASSETS

bool Crosstales.TB.Util.Config.COPY_ASSETS = Constants.DEFAULT_COPY_ASSETS
staticgetset

Enable or disable copying the 'Assets'-folder.

◆ COPY_LIBRARY

bool Crosstales.TB.Util.Config.COPY_LIBRARY = Constants.DEFAULT_COPY_LIBRARY
staticgetset

Enable or disable copying the 'Library'-folder.

◆ COPY_PACKAGES

bool Crosstales.TB.Util.Config.COPY_PACKAGES = Constants.DEFAULT_COPY_PACKAGES
staticgetset

Enable or disable copying the 'Packages'-folder.

◆ COPY_SETTINGS

bool Crosstales.TB.Util.Config.COPY_SETTINGS = Constants.DEFAULT_COPY_SETTINGS
staticgetset

Enable or disable copying the 'ProjectSettings'-folder.

◆ COPY_USER_SETTINGS

bool Crosstales.TB.Util.Config.COPY_USER_SETTINGS = Constants.DEFAULT_COPY_USER_SETTINGS
staticgetset

Enable or disable copying the 'UserSettings'-folder.

◆ CURRENT_SLOT

int Crosstales.TB.Util.Config.CURRENT_SLOT
staticgetset

Current backup slot.

◆ CUSTOM_PATH_BACKUP

bool Crosstales.TB.Util.Config.CUSTOM_PATH_BACKUP = Constants.DEFAULT_CUSTOM_PATH_BACKUP
staticgetset

Enable or disable custom location for the backup.

◆ DEBUG

bool Crosstales.TB.Util.Config.DEBUG = Constants.DEFAULT_DEBUG
staticgetset

Enable or disable debug logging for the asset.

◆ DELETE_LOCKFILE

bool Crosstales.TB.Util.Config.DELETE_LOCKFILE = Constants.DEFAULT_DELETE_LOCKFILE
staticgetset

Enable or disable deleting the 'UnityLockfile'.

◆ EXECUTE_METHOD_BACKUP

string Crosstales.TB.Util.Config.EXECUTE_METHOD_BACKUP = string.Empty
staticgetset

Execute static method 'ClassName.MethodName' in Unity after a backup.

◆ EXECUTE_METHOD_PRE_BACKUP

string Crosstales.TB.Util.Config.EXECUTE_METHOD_PRE_BACKUP = string.Empty
staticgetset

Execute static method 'ClassName.MethodName' in Unity before a backup.

◆ EXECUTE_METHOD_PRE_RESTORE

string Crosstales.TB.Util.Config.EXECUTE_METHOD_PRE_RESTORE = string.Empty
staticgetset

Execute static method 'ClassName.MethodName' in Unity before a restore.

◆ EXECUTE_METHOD_RESTORE

string Crosstales.TB.Util.Config.EXECUTE_METHOD_RESTORE = string.Empty
staticgetset

Execute static method 'ClassName.MethodName' in Unity after a restore.

◆ NO_GRAPHICS

bool Crosstales.TB.Util.Config.NO_GRAPHICS = Constants.DEFAULT_NO_GRAPHICS
staticgetset

Enable or disable graphics device in Unity Editor for CLI operations.

◆ QUIT

bool Crosstales.TB.Util.Config.QUIT = Constants.DEFAULT_QUIT
staticgetset

Enable or disable quit Unity Editor for CLI operations.

◆ RESTORE_COUNT

int Crosstales.TB.Util.Config.RESTORE_COUNT
staticgetset

Restore counter.

◆ RESTORE_DATE

System.DateTime Crosstales.TB.Util.Config.RESTORE_DATE
staticgetset

Restore date.

◆ SETUP_DATE

System.DateTime Crosstales.TB.Util.Config.SETUP_DATE
staticgetset

Last setup date.

◆ SLOTS

int Crosstales.TB.Util.Config.SLOTS
staticgetset

Number of backup slots (default: 1, range: 1-16).

◆ THREADS

int Crosstales.TB.Util.Config.THREADS
staticgetset

Threads for the switch operation (range: 2-128).

◆ UPDATE_CHECK

bool Crosstales.TB.Util.Config.UPDATE_CHECK = Constants.DEFAULT_UPDATE_CHECK
staticgetset

Enable or disable update-checks for the asset.

◆ USE_LEGACY

bool Crosstales.TB.Util.Config.USE_LEGACY = Constants.DEFAULT_USE_LEGACY
staticgetset

Uses the legacy switch function.

◆ VCS

int Crosstales.TB.Util.Config.VCS
staticgetset

Selected VCS-system (default: 0, 0 = none, 1 = git, 2 = SVN, 3 Mercurial, 4 = Collab, 5 = PlasticSCM).


The documentation for this class was generated from the following file:
  • C:/Users/slaub/Unity/assets/TurboBackup/TurboBackup/Assets/Plugins/crosstales/TurboBackup/Scripts/Editor/Util/Config.cs