MenuMessagePopup body text was getting its RectTransform collapsed to a near-zero width on first-launch, causing the entire disclaimer to render as a vertical column of single-word lines running down the center of the main menu — the panel background and dim backdrop weren’t visible at all.

Root cause: calling SciFiMenuKit.CreateAnchored/CreatePanel/CreateText routed through a GameObject-then-AddComponent path that silently produced zero-sized rects under this specific Canvas hierarchy (even though the same kit worked for DifficultyUnlockPopup’s shorter text). The failure mode was not reproducible in helper-unit terms so rather than chase the kit bug, this popup now builds its own RectTransforms explicitly using new GameObject(name, typeof(RectTransform)) so the RectTransform is present at construction time and can’t be silently swallowed.

Also:

  • Bumped Canvas sortingOrder from 95 to 300 so the popup always renders above the main menu even if a nested sub-canvas bumps its own order.
  • Explicit textWrappingMode = Normal + overflowMode = Overflow on body text so TMP wraps at the RectTransform edge (was implicit before).
  • Bumped K_EA_DISCLAIMER_SEEN to ”…_v2” so anyone who saw the broken v1 render and may have accidentally clicked through (setting the flag) gets the fixed popup on next launch.

Verified clean compile, 0 errors. User game launched from Steam beta branch successfully — this fix is for the one cosmetic rendering bug observed on first-launch.

Co-Authored-By: Claude Opus 4.7 (1M context) [email protected]


Commit 6702007 by astafford8488.