Hi all,
I am trying to use “Was Component Recently Rendered” to figure out if an actor/object is in the view in UE5. The true/false result from the node seems weird. When my camera view from the main character is close, the “Was Component Recently Rendered” node generates true. When my character goes really far away, the output becomes false. I am wondering if anyone has seen this kind of behavior or I am doing something wrong.
Here is what I have done.
-
I have a new project started from the First Person template.
-
I created a new level from the Basic new level template.
-
I created my own Blueprint class from the Actor template.
-
I added a cube shape to the class and made the following Event Graph:
-
When I play this level, I keep seeing “Cube is rendered” unless my character is really far away like the followings:
When the cube is in the screen:
When the cube is behind the character:
When the character is really far away:
Until this point, “Cube is rendered” was printed.
Any help would be highly appreciated.