logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Namespace Serenity.UnityProceduralAnimator.Tests.Editor

    Classes

    PrefabProceduralAnimatorApplierTests

    EditMode tests for the pure detection/validation/resolution helpers on PrefabProceduralAnimatorApplier. Hierarchies are built as in-memory GameObjects (not prefab assets) and destroyed in TearDown, so the asset-mutating ApplyToPrefab path (which needs a real prefab on disk) is not exercised here.

    ProceduralAnimatorComponentEditorTests

    Guards the custom inspector's binding to the component's serialized fields. A hand-written inspector resolves its fields by string, so a field that is renamed, removed, or never added at all fails silently: FindProperty just returns null and the inspector renders a warning box in its place forever. These tests turn that into a red test instead.

    ProceduralAnimatorScaffoldGeneratorTests

    EditMode tests for ProceduralAnimatorScaffoldGenerator. Pure path/selection logic is asserted directly; asset-creating methods target a temp folder under Assets and are cleaned up in TearDown so the suite is safe to re-run. The IMGUI setup window is not exercised here.

    In this article
    © 2026 Serenity. All Rights Reserved