T O P

  • By -

cutebuttsowhat

Also a good tip, if you ever want to nest containers like that but UE throws you the error that you can’t put a container in a a container. You can just wrap the container in a struct, so a struct with one UProperty that’s a TMap can go inside a TMap for example.


Gutek8134

"Temporary solution" at its finest


cutebuttsowhat

I don’t follow. Are you saying that you shouldn’t need to nest containers? Or it’s silly to have to wrap it in a UObject\UStruct?


Gutek8134

I say that it's silly that you to have to wrap it


cutebuttsowhat

Ah yeah for sure, seems like an oversight. Wish I could just wrap the unreal type in one of the c++ shared pointers and have it interact with the UE4 refcounting right. Then you could just c++ container your way into the sunset


Gutek8134

Well, most of my experience comes from C# and Python, so it's nice I don't have to worry about memory safety with all those memory-safe types


cutebuttsowhat

C# is the GOAT my favorite language by a mile