logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class SerenityPackageDependencyInstaller

    Standalone dependency installer that lives in a zero-dependency Editor assembly. Detects missing Unity packages required by Serenity and installs them sequentially.

    This assembly (Serenity.PackageBootstrapper.Editor) has no references to any Serenity runtime or editor assembly and no references to optional Unity packages. It compiles even when the rest of Serenity cannot, which is exactly the scenario it exists to fix.

    • UnityEditor.InitializeOnLoadMethodAttribute startup hook runs once per editor session and shows a confirmation dialog when packages are missing.
    • Menu item Tools/Serenity/Install Required Unity Packages for manual use.
    • Packages install one at a time via UnityEditor.PackageManager.Client.Add(System.String).

    State is stored in UnityEditor.SessionState so it survives domain reloads but resets each editor session, preventing repeated popup spam.

    Inheritance
    object
    SerenityPackageDependencyInstaller
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.Editor.PackageBootstrapper
    Assembly: Serenity.PackageBootstrapper.Editor.dll
    Syntax
    public static class SerenityPackageDependencyInstaller

    Methods

    InstallRequiredPackagesMenu()

    Declaration
    public static void InstallRequiredPackagesMenu()
    In this article
    © 2026 Serenity. All Rights Reserved