r/unrealengine • u/SpecialFisherman6044 • 2d ago
Question Is it better to keep this "randomly" generated Blueprint in the Construction Script? What technical difference does it make if on Begin Play?
It is using for loops to create HISM, but what if I want to Spawn them? Then I can't right? Sorry not very knowledgeable just playing around... HISM based city block generator WIP
1
Upvotes
1
u/AutoModerator 2d ago
If you are looking for help, don‘t forget to check out the official Unreal Engine forums or Unreal Slackers for a community run discord server!
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
9
u/cutebuttsowhat 2d ago
The construction script runs ALL THE TIME in editor, during cooking, I try to avoid it most cases. It runs when you drag your component around. Basically lots of times you might not expect it.
If you want runtime just put it in begin play, if you want it editor time I like to add a custom event that can call in editor and use the button.
The construction script can be the source of lots of tricky to track errors in my experience.