How to change the node property of another scene from current scene

I have a two scenes. MapScene.tscn and Building.tscn

MapScene.tscn contains..

MapScene
-Background
-Building

Building.tscn contains..

BuildingMenu
-BuildButton

So when I click the BuildButton from Building.tscn scene , I want to change the attribute of Building node from the MapScene.tscn scene and then navigate back to MapScene

BuildButton_pressed goes to the script created in BuildingMenu node which is the base node of the scene.
From that script, i need to access the Building node from MapScene
whatever I tried, it throws an error saying cant find the node.
Please help!!!!


Tags :

Leave a Comment

BoldItalicStrikethroughOrdered listUnordered list
Emoji
Image
Align leftAlign centerAlign rightToggle HTML viewToggle full pageToggle lights
Drop image/file