As shown in the figure, I want to move the icon in the red circle to the arrow and update it in real time with the movement. It is OK to directly obtain the position of the corresponding bone of the model and convert it to the screen coordinates, but the picture on the right is projected by scenecapture2d. How can it be converted to the screen coordinates?
Get the world-location instead of screenspace, then use the viewProjection-matrix of sceneCaptureComponent2D to calculate the viewport location
You can use the c++ function “GetCameraView” (or have a separate camera-component with same settings for calling it in blueprint) on the sceneCaptureComponent2D and then call GameplayStatics::GetViewProjectionMatrix with that view for getting the ViewProjection-matrix