diff --git a/platform-includes/user-feedback/sdk-api-example/unreal.mdx b/platform-includes/user-feedback/sdk-api-example/unreal.mdx index cabc6f1d4f0ee..676ca0c3362d5 100644 --- a/platform-includes/user-feedback/sdk-api-example/unreal.mdx +++ b/platform-includes/user-feedback/sdk-api-example/unreal.mdx @@ -1,19 +1,19 @@ ```cpp USentrySubsystem* SentrySubsystem = GEngine->GetEngineSubsystem(); -USentryId* EventId = SentrySubsystem->CaptureMessage(TEXT("Message with feedback")); +FString EventId = SentrySubsystem->CaptureMessage("Message with feedback"); -USentryUserFeedback* UserFeedback = NewObject(); -User->Initialize(EventId); -User->SetEmail("test@sentry.io"); -User->SetName("Name"); -User->SetComment("Some comment"); +USentryFeedback* UserFeedback = NewObject(); +UserFeedback->Initialize("Feedback message"); +UserFeedback->SetName("Jon Doe"); +UserFeedback->SetContactEmail("test@sentry.io"); +UserFeedback->SetAssociatedEvent(EventId); -SentrySubsystem->CaptureUserFeedback(UserFeedback); +SentrySubsystem->CaptureFeedback(UserFeedback); // OR -SentrySubsystem->CaptureUserFeedbackWithParams(EventId, "test@sentry.io", "Some comment", "Name"); +SentrySubsystem->CaptureFeedbackWithParams("Feedback message", "Jon Doe", "test@sentry.io", EventId); ``` The same result can be achieved by calling corresponding functions in blueprint: diff --git a/platform-includes/user-feedback/sdk-api-example/unreal_user_feedback.png b/platform-includes/user-feedback/sdk-api-example/unreal_user_feedback.png index c988c7e69dc26..cce359ddefff4 100644 Binary files a/platform-includes/user-feedback/sdk-api-example/unreal_user_feedback.png and b/platform-includes/user-feedback/sdk-api-example/unreal_user_feedback.png differ