Class LoadingProgressThemeFixture
The throwaway world the LoadingProgress generator tests run in: one folder per theme under a temporary
root, each holding a copy of a shipped theme's real LabeledSlider prefab — and, for a theme that already
has a loading bar, a copy of that theme's shipped LoadingBar prefab assigned as its template — so every
variant the generator writes lands beside a copy and never inside the package.
Inheritance
LoadingProgressThemeFixture
Assembly: Tests.Editor.dll
Syntax
public sealed class LoadingProgressThemeFixture : IDisposable
Fields
VariantFileName
Declaration
public const string VariantFileName = "LoadingProgressPrefab.prefab"
Field Value
Properties
RootFolder
Declaration
public string RootFolder { get; }
Property Value
Methods
CountVariantsOnDisk()
Declaration
public int CountVariantsOnDisk()
Returns
CreateThemeWithLoadingBar(string, string)
A theme whose LoadingProgress prefab is a copy of shippedThemeName's shipped
LoadingBar — the shape every Theme Builder theme has.
Declaration
public string CreateThemeWithLoadingBar(string shippedThemeName, string themeName)
Parameters
| Type |
Name |
Description |
| string |
shippedThemeName |
|
| string |
themeName |
|
Returns
CreateThemeWithoutLoadingBar(string, string)
A theme with no LoadingProgress prefab, over a copy of shippedThemeName's
slider.
Declaration
public string CreateThemeWithoutLoadingBar(string shippedThemeName, string themeName)
Parameters
| Type |
Name |
Description |
| string |
shippedThemeName |
|
| string |
themeName |
|
Returns
Dispose()
Declaration
LoadingBarPathBeside(string)
Declaration
public static string LoadingBarPathBeside(string themePath)
Parameters
| Type |
Name |
Description |
| string |
themePath |
|
Returns
Open(string)
Declaration
public static LoadingProgressThemeFixture Open(string rootFolderName)
Parameters
| Type |
Name |
Description |
| string |
rootFolderName |
|
Returns
TemplatePathOf(string)
Declaration
public static string TemplatePathOf(string themePath)
Parameters
| Type |
Name |
Description |
| string |
themePath |
|
Returns
VariantPathBeside(string)
Declaration
public static string VariantPathBeside(string themePath)
Parameters
| Type |
Name |
Description |
| string |
themePath |
|
Returns
Implements