I’m trying to combine three THCAR* elements into a single file path so I can load assets based on which level set I choose. Could someone help with this?
_fullPath is a pointer to string literal, it’s read-only memory and you can’t write to it, attempting to do so will crash the program, which is exactly what happens when _stprintf attempts to write to _fullPath.
As @anonymous_user_f5a50610 said you should be using FString instead of attempting to manipulate strings as TCHAR*, something like this:
To answer what asked, the reason I am using TCHAR* elements is because of the “StaticLoadObject” function, which takes in a TCHAR* parameter. I’m using this to load and spawn Blueprints at runtime.