If you add the class specifier EditInlineNew
to one component you can create a reference to it from another component in the property window. However, it will create a new component, instead of referencing a pre-existing one.
UCLASS( ClassGroup=(Custom), meta=(BlueprintSpawnableComponent), EditInlineNew)
class UFirstComponent : public UActorComponent
{
}
class USecondComponent : public UActorComponent
{
UPROPERTY(EditAnywhere)
UFirstComponent* FirstComponent;
}