Posts

Showing posts from March 12, 2017

Architecture - Blueprint Inventory Part 2: Inventory Functionality, Drag and Drop

Image
One of the implementations I really wanted to add to the inventory system was being able to move the widget around. Drag and Drop operations, as it turns out, aren't as simple as just drag and drop. A whole new BP must be created that will be used by whatever it is you want to drag, and several functions must be overwritten to do so. As mentioned in the previous blog post, I have started this project again, as the backup I had wasn;t totally up to date and it could stand to be a lot more cleaner. If you have been following along, there is a chance some of the variables or blueprints may not be the same. As always, if you read this blog post and would like more information, please view the original tutorial by youtube user " Unreal Gaime Dev " The first step The first thing to be done is to create a new BP with a parent class of "DragDropOperation." There is nothing required in the construction script or the event graph, it simply requires to vari

Small hiccup, corruption, reworking, see you next week.

Just a quick word - I am in the process of writing up this blog entry, but it should be said that the current version where I had more widget work as well as a merchant has been lost and corrupted. I have kept multiple backups, and have only lost maybe 3, 4 hours work. It's not the end of the world. That being said, when I started this project I really really was clueless. About programming and unreal itself. So, despite being 10 or so hours deep, I have opted to start again. A lot of file structures I had were not simple to find the blueprints necessary, I wasn't properly up to date with unreal and tried moving a lot of assets around which only duplicated a folder because it was still in use in another location, and a lot of the coding and variables read pretty horribly as well. So, with the interest of trying to become a more neater, stricter programmer, I have started fresh! This time, I'm aware of some mix ups with file structuring, I don't have starter content