Hi there,
I have a BP with a PCG component (and a sphere collision).
That BP gets spawned on BeginPlay.
Unfortunately the PCG Graph is not generated and I get the following error in the Output Log:
LogPCG: Error: Landscape is unable to access the landscape cache
This does not happen if I manually placed the BP in the level before. Then it somehow works when the new BP will be spawned on runtime (on BeginPlay).
As a workaround, I would suggest to disable the PCG component in your actor and activate it when you need it instead of spawning it.
PCG is a new feature and could have issues, it could even be a limitation of the system (hard to tell).
Have you tried placing the actor manually and then spawning another at runtime? (Just to see if the problem is the spawn or the absence of a PCG component on BeginPlay)
As a workaround I added a very simple PCG Volume to the level and now it works, so I guess this is a bug that the landscape cant be used if there is not already any pcg volume in the level…
More than a bug I’d say that “Landscape is unable to access the landscape cache” because the landscape cache doesn’t exist unless you create it with a PCG blueprint.
I’m glad you solved your issue and it’s also good to know that it works like this!
Remember to mark your post or mine as solution to help other users in the future.
Have a nice day!