All Ways of returning Mouse Pos in 3D Space, return 0,0,0

Hi there.

I’ve a small question about how to convert the mouse viewport position into 3D world location.

I tried it with:
ConvertMouseLocationToWorldSpace
and
GetHitResultUnderCursorByChannel

The Event should start another, server sided event, that spawns an object on the hit location.

This is the code right now:

This is placed inside the PlayerController. The server sided Event is right above it.

The problem I’m facing is:
Both Methods, to get the hit result under the cursor, return a vec3(0,0,0)…
No matter what I try… the hit result is always zero.

I can get the Mouse position with GetMousePosition_onViewport, but not the hit location under the cursor …

I also tried to line trace from the camera to the hit result… same… it always traces to the world location 0,0,0…

Has someone an idea why this happens?

If the return value of a trace is false, then it didn’t hit anything, and the Location will be (0,0,0). Looking at the code indicates it will also return false if it hits a HUD hitbox . . i’m not sure what a HUD hitbox is exactly, but i’m guessing a UI element.

The only HUD element, that could’ve blocked the trace from hitting, would be the canvas of the HUD… that I switched the visibility to “Not Hit-Testable” for self 6 all children…

I tried to delete it for testing - same problem, so there is no blocking UI Element now.