For example, I have this TSubObjectPtr in my header:
UPROPERTY(blahblah)
TSubObjectPtr<class UTexture2D> myTexture;
Then in constructor, how do I assign it with a factory method such as:
myTexture = UTexture2D::CreateTransient(512,512);
Do I have to use native c++ pointers when using factory methods like:
UTexture2D *myTexture;
in the header instead?