TSubclassOf in Unreal Engine 5 C++



Syntax

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

How it looks in the details panel:

More info on creating object from TSubclassOf here