Skip to content

Fix UE 5.8 compile errors from FJsonObject key-type change - #46

Open
mflannigan042 wants to merge 1 commit into
Natfii:masterfrom
mflannigan042:ue5.8-compat
Open

Fix UE 5.8 compile errors from FJsonObject key-type change#46
mflannigan042 wants to merge 1 commit into
Natfii:masterfrom
mflannigan042:ue5.8-compat

Conversation

@mflannigan042

Copy link
Copy Markdown

Summary

  • UE 5.8 changed FJsonObject::Values's map key type from FString to UE::FSharedString, which broke every call site that passed Pair.Key directly into APIs expecting an FString (TSet<FString>::Contains, TArray<FString>::Add, TMap<FString,...>::Add, and a few tool-specific setter functions).
  • Fixes each site by converting the key with FString(Key.ToView()) before use.
  • Replaces an FSharedString::ToUpper() call (no longer exists on that type) with FString(Key.ToView()).ToUpper().
  • Bumps UnrealClaude.uplugin EngineVersion to 5.8.0 (and updates the description string) since the plugin now targets 5.8.

Verification

Built clean end-to-end via:

RunUAT.bat BuildPlugin -Plugin=UnrealClaude/UnrealClaude.uplugin -Package=<out> -TargetPlatforms=Win64

against a UE 5.8.0 engine install. All 73 compile units succeeded, plugin DLL linked without errors.

Test plan

  • BuildPlugin via RunUAT against UE 5.8 completes with BUILD SUCCESSFUL
  • Maintainer smoke-test in-editor on 5.8 (chat panel, MCP tools touching JSON params: blueprint modify, material params, anim blueprint modify, set_property)

UE 5.8 changed FJsonObject::Values map key type from FString to
UE::FSharedString, breaking every call site that passed Pair.Key
directly to APIs expecting an FString. Converts affected keys with
FString(Key.ToView()) and fixes an FSharedString::ToUpper() call
that no longer exists (route through FString first).

Also bumps UnrealClaude.uplugin EngineVersion to 5.8.0.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@Roccoxx

Roccoxx commented Aug 2, 2026

Copy link
Copy Markdown

thanks, I tested and built successful :)

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.

2 participants