Unreal 5.3 / PCG / Get Spline Data

Hello :slight_smile:

I’m new to PCG, and started to follow several tutorials made by Adrien Logut on YouTube. Now I’m stuck on the 4th one : https://youtu.be/IE9Evj5suYA?si=qte70ssyHuGKipBS

I’ve even adapted the PCG graph following the instructions given here, but the Get Spline Data node still returns me a warning “[PCGVolume_0 - GetSplineData_26 (Get Spline Data (Landscape Spline Actor))]: No matching actor was found”. I know a warning should not be blocking but still, the objects are still scattered on the road …

Any suggestion would be welcome, this is driving me nuts :wink:

Thanks in advance !

Regards.

Landscape splines are a bit more slippery than normal splines. If you are not in a WP map like in my tutorial, it is stored on the landscape actor, that’s why I use the Landscape Actor class to get it. In WP map, IIRC there is a LandscapeSplineActor that you can query to get the landscape spline. Make sure that you get all the actors, and not only within your bounds.

1 Like

Hello @AdrienLogut ,

Sorry for my late reply, I was off a few days :wink:
I’ll try your suggestion for sure (although not very clean to my newbie eyes), for now I switched on using a spline BP, it allowed my to finish the tutorial at least.

Thanks again for the tutorials :slight_smile:

Regards.