I am using LineTraceByChannel to cast a ray and return the name of the object it hits in my game world. It works but I am having trouble working out how to add the Y-axis (Up/Down) value. At the moment the ray is only cast horizontal to the ground, regardless of whether the player is looking up or down.
I tried adding a Pitch variable and getting the y-axis value but haven't worked out how exactly to use this. I followed a tutorial to get this far so any further advice is much appreciated.
This is my blueprint currently
The 'Selection Beam' component is attached to the character mesh, facing forwards:
This is where I get the input from the Mouse Y axis, if that helps: