TSubclassOf in Unreal Engine C++



Syntax

UPROPERTY(EditAnywhere, BlueprintReadWrite)
TSubclassOf<UObject> MyObjectClass;

How it looks in the details panel:



Instantiating

UObject* MyObject = NewObject<UObject>(MyObjectClass);