Adding actors and components to a custom ALevelScriptActor
I'm trying to add default actors and components to my custom ALevelScriptActor based levels, my code compiles with no problems, but does nothing. I'm new with Unreal's API, is there a better/correct way to do so?
PS: The intellisense error is caused by this know issue UE-62042
asked Jul 28 '18 at 12:15 AM in C++ Programming
Do that on AGameMode, level script is to contain level specific code (via Level Blueprint) and only reason why you want to add C++ code is only if you want to send data to it like event and such. Probably Level Blueprint processing mess with component.
I personally used AGameMode multiple time to add post processing screen effects using post processing component and i can confirm you it works well :)
Absolut alternative is to make a actor with those components, spawn it in C++ and just control it
Also as extra if you want to add level specific properties, there AWorldSettings if you don't know yet ;]
Follow this question
Once you sign in you will be able to subscribe for any updates here