Can't Acces Variable More Than Once ? Advice Please.
Hey mates. Need a little advice or guidance or directions. Been working on my inventory system. Works well. I am trying to make a description window pop up just item's name and it's short description written on it when player howers on the item in inventory. As an example here is one from Gothic 3:
I have came quite a bit into accomplishing that. But the thing is description is shown only first time player is hovering the item on the inventory. If I pull the mouse away and do it again it just gives no description. Here first and second time.
I have a simple inventory system. Inventory itself works quite robust and well. I am using this tutorial if you need to know: https://www.youtube.com/watch?v=_U5VbM1UdCM&list=PLboXykqtm8dzeQmW8ZgR4gVLUILM0sdVy∈dex=4
I have three widgets: Inventory; InventorySlot, ItemDescBox. InventorySlot is just a button, image and text that are binded to AddedItem variable (custom FInventoryItem type) Inventory just collects these slots into a window and updates the slots in it's Event Graph. Here is Inventory's Event Graph if it helps:
ItemDesBox is just an image and text on it binded to AddedItemDesc (same FInventoryItem type before). I made a small addition in ItemSlot's Event Graph with OnHowered and OnUnhowered ones. The OnHowered one simply draws the ItemDescBox and Sets over the AddedItem variable to AddedItemDesc variable of ItemDescBox since they are both essentially the same type. The OnUnHowered one simply hides the widget.
But like I explained this only works the first time. After that it always is returning nothing. What is it you think maybe causing this ? I have tried for 2 days but I am no master of UE4. Wanted to ask it. Also if you have any advices in general and tutorials you wanna suggest, I would like to hear them too. Thanks.
Solved thanks to a helping mate. Please check:
answered Mar 24 '19 at 11:40 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here