I followed this tutorial on how to set up a trace in blueprints, which would make the object my player is looking at become a variable or whatever else.
Simple enough, but my only difference is that I’m calling this function from a very simple UMG button, so the variables for the player’s location aren’t local. I thought it would be easy enough to make a variable that points to the player blueprint, but the trace is completely dead. I’m using the First Person character from the template, so I’m referencing the First Person Camera component in this blueprint. The trace unfortunately starts at the origin of the world and travels down the X axis in a flat line, not thinking about where my character is a all.
Here are the blueprint and the debug line in the level.