[C++] update array or vector from inside a function
Hi, I've tried to do this for a long time, but I've got almost no success trying to not crash the engine everytime.
How to properly set inside a cpp pawn an array or vector that can be updated or changed from inside a function?
I've tried a lot of times and return in various combinations crashes or weird values ( I believe memory address)
I've tried also vector the compiler says that is not anymore supported
I've tried TArray but crash the engine as well.
The examples that I've shown are perfectly compiled "stand alone" with a simple new win32 console vc++ project.
How to update an array (or show me a simple way to store integers) in c++ in UE4 way?
asked May 07 '19 at 07:48 AM in C++ Programming
Personally I'd prefer to use the unreal specific classes, e.g.
Follow this question
Once you sign in you will be able to subscribe for any updates here