Why can't a reference a level component in another blueprint?

I want to reference the tilemap from my level blueprint within my camera blueprint.
I first select the tilemap from the level viewport, I create a reference to it in my level blueprint, then I cast it to a variable, I copy copy this variable and paste it in my camera blueprint.

This is how I was led to believe the correct procedure was. However, I get an error when compiling my camera blueprint:

“Could not find a variable named “TileMapRef” in ‘/Game/Blueprints/BP_Camera.BP_Camera_C’.
Make sure ‘/Game/Blueprints/BP_Camera.BP_Camera_C’ has been compiled for Get TileMapRef”
“The property associated with Tile Map Ref could not be found in ‘/Game/Blueprints/BP_Camera.BP_Camera_C’”

Please can someone point out what I’m doing wrong. All these little road blocks are so frustrating.

thats not how variables work, you cant copy them from one place to another

if your tilemap is an actor you can use GetActorOfClass in your Camera but save it on BeginPlay not on Tick

Ok thank you.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.