Godot Version
v4.5.stable.steam [876b29033]
Question
Simple base question: Is there a way for a child node to easily access a parent node’s variable for reference purposes? Should I be exporting or using signals or something similar?
Within the game I’m attempting to make, I have a screen/scene that creates a paged list of what a player owns (6 things per page, with no direct limit on how many a player can own). To begin, the parent node takes the player’s list and gets its size/length to calculate number of pages needed in total.
After this, various child nodes use the parent’s variables to determine which item should be shown/accessed, and while I have it working at current I was wondering if there was a better way than I managed to come up with, as shown below:
Parent Node:
Child Node:
(Mentioned nodes of CatSprite and NameLabel proceed to use the ‘target’ variable to determine their displays. Additionally, the child is a Button that allows a player to select and further investigate ‘target’.)

