How would I make an actor only appear under a specific light source and nothing else?
Hey there @benjysugi! So technically the light system isn’t very open to polling, and the only way to accomplish that with light per say would be to make a shader that reacts to light in a way to alter it’s base color, that said it would not work with specific lights, it’s work with all of them, that however that is by no means in my skillset. It’s usually better to fake mechanics like that due to a myriad of reasons.
The way I’d do it, would be to have a material that uses world position of an object to determine it’s material. You’d basically set the material’s distance based on the specific light’s radius. This really only would work well with a very defined distance, however you could handle it dynamically by raycasting and passing the distance into the material constantly.
I don’t have a full implementation, but this video goes over the basic principal, but you’d have to adjust it a bit to pull off what you’d need!
Disclaimer: One or more of these links are unaffiliated with Epic Games. Epic Games is not liable for anything that may occur outside of this Unreal Engine domain. Please exercise your best judgment when following links outside of the forums.