Files
chameleon/Assets/Scripts
adminandClaude Opus 4.8 b00c415c8c Fix HUD persistence breaking across additive scene switches
The HUD save key was derived from the active scene name, which now changes
across the additive lobby/map loads (Main -> Lobby -> Test Map). Save and
restore landed in different files, so settings appeared lost. Derive the key
from the HUD's own (stable, persistent) scene instead.

Brush settings also live on the avatar's painter, which is despawned and
respawned on every scene switch, resetting them to prefab defaults. Mirror
the brush values into an in-memory snapshot on the persistent HUD and seed the
freshly bound painter from it, so in-session edits carry across the respawn.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-28 00:51:59 +02:00
..