Using Line Traces To Make Game Objects Hidden In Game

Make a function like this, if one trace is hit then actor must be shown and you don’t need to continue further. If all traces did not hit then at the end actor should be hidden.