I’m trying to acces a variable (a widget) that I save as reference in a parent class from within one of it’s child classes. But when I check the variable inside the child class it appears to be “none” (empty)
I’m trying to wrap my head around what’s going on here as I can’t see what I’m doing wrong exactly. But there must be a reason for this. Any idea why?
Here is where i save it inside the parent class
Here is how I try to use it in the child class
This is the error i’m getting
Now here comes the interesting part. I actually have 2 childs that need this variable. Now when I first tried to use it with one of them it worked! But the other child refused to work. So I simply unplugged the node of both childs and suddenly the first one didn’t work anymore either.
Now this only makes it that much harder to comprehend what is going on. I really hope someone can help me on this one. It’s melting my brain.