Cannot Emplace Elements to TArray
I'm currently trying to save the image and mesh of my pickup objects. I have created my own save game object with a PickupIcon and PickupMesh Tarray, of types UTexture2D and UStaticMeshComponent respectively.
When I try and compile this i get the following error. Error C2248 'UTexture2D::UTexture2D': cannot access private member declared in class 'UTexture2D' and the same but with UStaticMeshComponent for the other error. I am quite new to C++ and UE4 so am probably missing something obvious but couldn't find anything anywhere online so any help would be appreciated.
p.s. Do let me know if you need any more info as this is my first time posting on here!
asked Jan 30 '18 at 11:38 PM in C++ Programming
Follow this question
Once you sign in you will be able to subscribe for any updates here