I’m quite new to blueprints, decided to follow tutorial on Inventory system to get some more knowledge and now I’m trying to extend this system by myself.
I’m having trouble with referencing.
If I understand correctly, we are setting “Inventory” (BP_Inventory) on Create Widget node.
I guess because of that I can use in widgets “Inventory” ref.
Just by creating variable of type “BP_Inventory”.
I’m not really sure how this was accomplished.
Right after finishing few other widgets I decided to create Hotkeybar and this is where I have quite a problem.
In my BP_HotkeyBar - basically same type of blueprint as BP_Inventory, I have functions and variables I need to get into my widget called “HotkeyBar”.
Just so I won’t confuse anybody let’s call it W_HotkeyBar for now.
Keep in mind that W_HotkeyBar placed in MainWidget. So well I did some work and when I tried to create variable of type “BP_HotkeyBar” it didn’t work.
Tried to understand why, and I just can’t understand why or how to do it.
After debuging I know that this variable is always Not Valid.
Tried to get reference of this Actor by “Get All Actors Of Class” and ForEachLoop for variables, but this just isn’t what I’m looking for and what I heard isn’t really efficient.
Also note that BP_Inventory isn’t placed in level, just as BP_HotkeyBar isn’t.
How can I have another input in “Create Widget” node?
Is that input in “Create Widget” node even doing something?
How should I solve this problem?
Edit(Didn’t really clarify my main problem): How can I reference my BP_HotkeyBar in W_HotkeyBar?
If there is anything I didn’t tell you about or you need more info, just ask and I’ll provide needed info.