So, do I get it right, that you cannot actually create a static instance of a class that inherits UObject?
Say I have a class USomething, which inherits UObject. Than I have a class called say, MyClass, which has a USomething attribute like so:
class MyClass{
private:
USomething myAtribute;
public:
MyClass(){}
//other stuff...
}
So I cannot actually do this, right? It has to be:
UPROPERTY()
USomething* myAttribute;
…and allocated as:
myAttribute= NewObject<USomething>();
Or did I get it all wrong?