I am working with a top down game and I have a Line trace set up from the player camera to the player. I have figured out how to get certain objects to disappear when hit by the line trace, but I am struggling to figure out how to set them back to visibile when not being hit.
To my understanding the line trace sees the object being hit and executes the set visibility function. But when the object is no longer being hit, it has no way of knowing which object it was previously hitting in order to reset the visibility.
It really depends on the asset. It might be a BP, in which case you have to hack it a bit. If it’s just a mesh, you either back to scanning everything or make a BP and put the roof mesh in it.
This is awesome, thanks guys. Firstly to the op for getting 95% of the way there, and then to ClockworkOcean for providing the solution. I’ve been round the bends over the internet this afternoon looking to figure out how to get some blueprint meshes hidden when in the way of the camera, and this has answered it! But I’ve also learnt another piece of the puzzle in how to get blueprints to communicate via the interface. If only I could figure out how to make the actual trace line itself, a bit wider.