Hey everyone, I’ve been messing around with some code as of late that allows me to render a planet in segments for an endless runner.
Originally all the assets were made for a Linear Endless runner such as ‘Subway Surfers’ / ‘Temple Run’, however I decided to change the art style to represent more of a planet that you loop around.
Meshes have been re-done, collision re-added, etc. When I run the game in ‘Simulated’ everything works perfectly:
However once I try to run the game in ‘Selected Viewport’ I get this error:
Here is the ‘TreeGenerator’ blueprint overview:
(I apologize about the messy code, had to make everything closer so it’d fit in one image)
Here is the ‘GetRotationAndLocationFromSurface’ node blueprint:
UPDATE: The game only crashes causing the error when my Character is spawned… I tried dragging and dropping my character into the world then simulating it but I now get the exact same error as above. I have no reason to believe that the problem is directly the Character’s Blueprints but here it is just in-case…
UPDATE: I’ve furthered my progress at narrowing down what the issue could be and it appears that the Character is the culprit, not the ‘TreeGenerator’ after all. The error only appears when I try adding the same ‘GetRotationAndLocationFromSurface’ node to the event tick on the character.
Any help with this problem would be greatly appreciated.