Namespace Serenity.Editor.PackageBootstrapper
Classes
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.
SerenityPackageExporter
Exports the Serenity .unitypackage for Asset Store distribution, automatically excluding paths that should not ship to customers (tests, examples, documentation build tools, etc.).