You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
v0.3.4: orphan GameObject + DontDestroyOnLoad to survive scene changes
The v0.3.3 side-channel diagnostic was conclusive: Plugin.Awake fires
once and writes its 'Awake complete' line, then Update never runs
again — across 5+ minutes of gameplay we got zero heartbeats. The
plugin's MonoBehaviour is being torn down between Awake and the first
in-game frame.
The working DualGrab mod's decompiled Awake explicitly orphans its
GameObject (parent = null) and sets HideFlags.HideAndDontSave. We were
relying on BepInEx's default lifecycle, which is apparently not
sufficient in R.E.P.O. — its scene transitions seem to clean up the
BepInEx_Manager GameObject our component lived on. Replicating
DualGrab's three-step trick (reparent to root, hide+don't-save flag,
explicit DontDestroyOnLoad) should keep our component alive across
the main-menu → level transition.
Also bundles the new 256x256 logo (six-axis SpaceMouse puck design)
into the package — first non-placeholder icon on Thunderstore.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>