logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class SerenityPackageImportScrubber

    Scorched-earth package updater: the Serenity package is the sole owner of Assets/Serenity/Scripts, Tests and Documentation, so when a Serenity package import starts this scrubber moves those folders to the OS trash (recoverable) and lets the import lay everything down fresh — no orphans, no GUID hostages, no compile errors, no restart. Media/ is never touched (users modify prefabs and themes in place). A post-import safety net additionally trashes any leftover files under the same roots that were not part of the import, covering editor versions where the pre-import hook fires after files land. Deleting the running scrubber's own sources is safe: the loaded assembly stays in the domain for the rest of the session, and the import restores the files. Accepted destructive edge: partial Custom Package imports of the framework folders are UNSUPPORTED — a file the user deselects during a Serenity import is not part of the imported items, so the safety net treats the on-disk copy as a leftover and moves it to the trash (recoverable). This is a product decision, not an accident: those folders belong to the package, and deselecting framework files would otherwise leave exactly the stale-orphan states this mechanism exists to eliminate.

    Inheritance
    object
    SerenityPackageImportScrubber
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.Editor.ObsoleteAssetCleaner
    Assembly: Serenity.ObsoleteAssetCleaner.Editor.dll
    Syntax
    public static class SerenityPackageImportScrubber
    In this article
    © 2026 Serenity. All Rights Reserved