Runtime pcg events

Hello, is there an event that would happen when a partitioned runtime pcg is done generating or some way to check if any partition of a specific pcg is currently being generated?

[Attachment Removed]

Hi,

If you have your PCG as a component to an actor, you can have access to Events which include OnGraphGenerated, which is what I think you are after. This runs after the PCG Component completes generating.

There are also a couple videos online.

Hope this helps- this is just what I have found works in my short experience with it.

[Image Removed]

[Attachment Removed]

Hello,

those events don’t really work on a pcg that is set to runtime generation, I couldn’t find a way to do it in blueprints but I could do a function in c++ that can check if the runtime pcg is currently generating something, so I’m just checking for it with the function and if it is still running, I just check it again a second later [Image Removed]

[Attachment Removed]

Hi Victor.

There are two runtime cases:

(1) when generation is done on demand or on load (e.g. on stream), in which case the “normal” events are triggered as you’d expect in UPCGComponent::PostProcessGraph.

(2) in the case on runtime generation (with hierarchical generation), which is managed by the runtime gen scheduler, e.g. FPCGRuntimeGenScheduler.

In the case of (2), we don’t currently propagate events there, for a reason of perfs & we haven’t had a use case needed for this.

However, if you have a look at FPCGRuntimeGenScheduler::TickScheduleGeneration, you’ll notice that we do track the number of concurrently generating components, so you probably could hook up something there if you wanted to.

Hope this helps,

Julien

[Attachment Removed]