So, i want to check if my linetrace hitted an object but this object is not a blueprint type so i cant cast to it, it is a static mesh, so how can i check if it hitted the static mesh?
Cast to static mesh, or make line trace for objects type “world static”
As Redbox said, you can still cast to a static mesh to see if you are hitting a static mesh.
If it is simply a static mesh that has been dragged into the scene you can cast to Static Mesh Actor to confirm, but if it is a Static Mesh that you added as a component you can instead cast to Static Mesh Component.
Below is the example of both:
1 Like