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 Packagesfor 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.
Inherited Members
Namespace: Serenity.Editor.PackageBootstrapper
Assembly: Serenity.PackageBootstrapper.Editor.dll
Syntax
public static class SerenityPackageDependencyInstaller
Methods
InstallRequiredPackagesMenu()
Declaration
public static void InstallRequiredPackagesMenu()