Skip to content

chore: add production prefab and scene migration tooling - #9

Merged
pes7 merged 12 commits into
masterfrom
refactor/production-prefab-scene-migration
Jul 27, 2026
Merged

pes7 merged 12 commits into
masterfrom
refactor/production-prefab-scene-migration

Conversation

@pes7

@pes7 pes7 commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

Summary

This stacked PR adds the production composition migration layer on top of refactor/editor-validation-ci.

Completed scope

  • adds an explicit production composition rule catalog
  • audits player, NPC, weapon, damage presentation, world and ammo HUD composition
  • adds safe automatic component insertion for unambiguous prefab/scene requirements
  • keeps reference-heavy presentation rules audit-only
  • adds migration commands for selected prefabs, all first-party prefabs and open scenes
  • loads and saves prefab contents through PrefabUtility instead of editing YAML
  • preserves prefab GUIDs, existing components and serialized references
  • excludes ThirdParty, Samples and Tests assets from bulk migration
  • adds migration result window with missing/added/error counts and asset pinging
  • adds runtime type resolution without direct Assembly-CSharp dependencies
  • adds editor tests for rule catalog, report semantics and type resolution
  • adds Docs/PRODUCTION_COMPOSITION_MIGRATION.md

Composition rules

  • Player root: Health, Death, PlayerInputRouter, WeaponSwitcher
  • NPC actor: Health, Death, FactionMember
  • Weapon: Weapon, ProjectileSpawner, ShellEjector, WeaponAudio, WeaponRecoil
  • Damage presentation: DamageEffectsPresenter (audit-only)
  • World root: ChunkManager
  • Ammo HUD: WeaponAmmoPresenter (audit-only)

Stacking

Base branch: refactor/editor-validation-ci

Merge after PR #8, or retarget after earlier stacked PRs are merged.

Unity workflow

  1. Run Zone UA/Validation/Validate Project.
  2. Run Zone UA/Migration/Audit Production Composition.
  3. Migrate selected representative prefabs first.
  4. Review and wire all newly added components in Inspector.
  5. Audit and migrate open production scenes.
  6. Save scenes manually after reviewing the diff.
  7. Run EditMode and Play Mode smoke tests.

Validation required in Unity 6000.5.5f1

  • project compiles with zero Console errors
  • production composition audit completes
  • selected prefab migration preserves GUID and nested prefab relationships
  • player prefab receives expected required components
  • NPC prefabs receive Health, Death and FactionMember
  • weapon prefabs receive modular weapon components
  • report-only HUD and damage presentation issues are not auto-added
  • migrated scenes are marked dirty but not silently saved
  • all newly added serialized references are wired
  • player, NPC, combat, HUD and world smoke tests pass

The code scope is complete. The actual prefab and scene assets must be migrated by running these Editor commands locally; this environment cannot safely save Unity prefab/scene serialization.

@pes7
pes7 force-pushed the refactor/editor-validation-ci branch from 29e8ca9 to c5437c3 Compare July 27, 2026 20:22
@pes7
pes7 force-pushed the refactor/production-prefab-scene-migration branch from b8c76ee to eba89d4 Compare July 27, 2026 20:25
@pes7
pes7 changed the base branch from refactor/editor-validation-ci to master July 27, 2026 20:25
@pes7
pes7 marked this pull request as ready for review July 27, 2026 20:25
@pes7
pes7 merged commit 5168713 into master Jul 27, 2026
2 checks passed
@pes7
pes7 deleted the refactor/production-prefab-scene-migration branch July 28, 2026 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant