Referencing c++ actor in Level Blueprint

I have a c++ class set up as an actor and I have some script headed with UCLASS(), I want to reference the actor in my level blueprint, is there any code, blueprinting or compiling that needs to be done?

There are a lot of references and examples here A new, community-hosted Unreal Engine Wiki - Announcements - Unreal Engine Forums. You should check it out and be able to do exactly what you need.

Cheers,
Kishore

can you provide a example one? I don’t get how can i do that easily as a BP:

did you find a solution for that?

Try

UCLASS(BlueprintType)

before your Actor-inherited class and let me know if it still doesn’t work.

I think you didn’t understand to me, this is my code:

void ABookBasePlayerController::BeginPlay()
    {
    	// Call the base class  
    	Super::BeginPlay();
    
    	APlayerController* PlayerController = UGameplayStatics::GetPlayerController(this, 0);
    
    	// TODO: find the same way that in Blueprint
    	ACameraActor TPCamera = FindObject<ACameraActor>(TEXT("TPCamera"));
    
    	PlayerController->SetViewTargetWithBlend(TPCamera, 0.5f);
    
    	LectureWidget = CreateWidget<ULectureWidget>(this, LectureWidgetClass);
    }