Skip to content

fix(cpp): UE 5.6 compatibility for UAnimStateNode result-node lookup - #62

Merged
zenoengine merged 1 commit into
devfrom
fix/ue5.6-animstate-compat
Jul 7, 2026
Merged

fix(cpp): UE 5.6 compatibility for UAnimStateNode result-node lookup#62
zenoengine merged 1 commit into
devfrom
fix/ue5.6-animstate-compat

Conversation

@zenoengine

Copy link
Copy Markdown
Collaborator

UAnimStateNode::GetResultNodeInsideState() was added in UE 5.7, so ue_build_anim_state_machine's C++ helper failed to compile on 5.6 (C2039).

Guard with an engine-version macro:

  • 5.7+: keep the official GetResultNodeInsideState().
  • 5.6 and older: find the state result by scanning the state's bound graph for UAnimGraphNode_StateResult.

Verified RunUAT BuildPlugin succeeds on 5.6, 5.7, 5.8; the 5.7+ path is unchanged. Completes per-version binary coverage (5.6 binary to be attached to v2.2.0).

UAnimStateNode::GetResultNodeInsideState() was added in UE 5.7, so the
state-machine builder failed to compile on 5.6 (C2039). Guard it with an
engine-version macro: use the official API on 5.7+, and on 5.6 (and older)
find the state result by scanning the state's bound graph for the
UAnimGraphNode_StateResult. Verified: BuildPlugin succeeds on UE 5.6, 5.7,
and 5.8; the 5.7+ path is unchanged.
@zenoengine
zenoengine merged commit b6ef8c6 into dev Jul 7, 2026
1 check passed
@zenoengine
zenoengine deleted the fix/ue5.6-animstate-compat branch July 7, 2026 00:52
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