Get Actor reference from level

Hi, is there any way to get the reference of an Actor on the level? I’m looking to get testCube actor as a reference inside ThirdPersonCharacter.h

I have created a pointer in .h as image shows but there is not slot on the Details Panel to set to…

Update:

My error…

AThirdPersonCharacter has a blueprint subclass, so testCube is visible in this last subclass…

AThirdPersonCharacter → BP_ThirdPersonCharacter = testCube is on the BP Detail Panel…
AThirdPersonCharacter = testCube is directly on the Detail Panel…

Thanks anyway.

EditAnywhere should be BlueprintReadWrite, EditAnywhere

1 Like