So WasRecentlyRendered node is buggy, whenever the game is played in rendered mode it returns true even when the actor is hidden behind walls completely but works fine in unlit mode (returns false behind walls).
And yes I even checked the rendering with FreezeRendering console command, the target actor was completely un-rendered behind walls. what’s happening here?
From the information available, it appears that the WasRecentlyRendered node only takes into account the camera’s frustum for code-based optimization purposes and does not perform occlusion culling. This means that if the actor resides within the camera’s frustum, the node may return true, regardless of whether the actor is actually visible on the screen or not. Official Site Additionally, there have been instances where other elements, such as game screen widgets or render targets for minimaps, have interfered with the expected behavior of the WasRecentlyRendered node.
I’m seeing something similar. It looks like it’s getting set as WasRecentlyRendered during the shadow pass. I suppose it’s rendering them into the shadow map and that counts as “recently rendered”