Is there any way to run an event when the actor is render into the scene
Kind of event begin play or custom event type of node or any other way
Like there’s an option in animations blueprints
To tick when character is rendered into the scene
Is there any way to run an event when the actor is render into the scene
Kind of event begin play or custom event type of node or any other way
Like there’s an option in animations blueprints
To tick when character is rendered into the scene
There is no built in function for whenever something gets rendered into a scene- at least not in the animation blueprint.
We can create an alternative. Use it sparingly though- I didn’t optimize it. I made it pure, but it doesn’t have to be.
The alternative involves getting the 8 bounding corners of an actor, and checking whether they’re in view. Here’s a blueprint I made so you don’t have to input the coords yourself
For the event portion, it’s really easy. We use a gate, branch, and sequence node. Since we’ve set StartClosed to false, it will start open. We then use the function to check whether or not the actor is visible. If it is, we first close the gate so this doesn’t get triggered again, and then we go on to do whatever you want.
What you’ll probably want to do is create a function in the blueprint and call it.
Ohh actually I am wrong
That tick when render option in in skeleton mesh component in the character
You can look - visibility based anim update option
But for my actor i am using isvisible node with a branch on event tick
I just want to not run code on every tick
So just wondering here
Thanks for your help
That is actor in player view node seems useful to me