logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class UnityUiLoadingProgressPrefabGenerator

    Editor tool that generates a dedicated "LoadingProgressPrefab" for UI themes.
    For each UnityUiThemeDefinition the LoadingProgressPrefabGenerationPlan lets it write, it creates a prefab variant of that theme's slideable template (the interactive slider) next to it and assigns it to the theme's LoadingProgressTemplate field, so the gameplay loading overlay can render the progress bar from a separate prefab instead of reusing the interactive slider. A theme that already has a LoadingProgress prefab keeps it unless the caller asks to replace existing ones.

    Inheritance
    object
    UnityUiLoadingProgressPrefabGenerator
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.Ui.Installation.Editor.Settings
    Assembly: Serenity.UnityUi.Installation.Editor.dll
    Syntax
    public static class UnityUiLoadingProgressPrefabGenerator

    Methods

    Execute(LoadingProgressPrefabGenerationPlan)

    Carries out exactly plan. Each variant is written, imported and read back before its theme is assigned, and only a variant found on disk counts as created: an asset-editing batch would defer that import, so the read-back would miss the file the run had just written and report it as a failure.

    Declaration
    public static LoadingProgressPrefabGenerationReport Execute(LoadingProgressPrefabGenerationPlan plan)
    Parameters
    Type Name Description
    LoadingProgressPrefabGenerationPlan plan
    Returns
    Type Description
    LoadingProgressPrefabGenerationReport

    GenerateForAllThemes()

    Fills every theme that has no LoadingProgress prefab yet, reporting through UnityEngine.Debug — the CLI-friendly shape kept for anyone still invoking the tool by its exact menu path from the command line. The Hub instead opens Serenity.Ui.Installation.Editor.Settings.LoadingProgressPrefabGeneratorWindow, which previews the LoadingProgressPrefabGenerationPlan and reports through Serenity.Global.Infrastructure.Editor.SerenityWizardActivityLog.

    Declaration
    public static void GenerateForAllThemes()

    GenerateForAllThemesWithReport(bool)

    Carries out ForAllThemes(bool) and returns the outcome instead of only logging it, so a caller with its own reporting surface never has to re-implement the scan to know what happened.

    Declaration
    public static LoadingProgressPrefabGenerationReport GenerateForAllThemesWithReport(bool replaceExistingTemplates)
    Parameters
    Type Name Description
    bool replaceExistingTemplates
    Returns
    Type Description
    LoadingProgressPrefabGenerationReport
    In this article
    © 2026 Serenity. All Rights Reserved