Hi everyone,
I’m trying to get an inventory system working in my game, and while that works with the base blueprint (“BP_Item” in the screenshot), it does some really wacky stuff with the children of that blueprint (most importantly not being able to extract the static mesh of that blueprint).
So far Ive tried getting the BP item class and then getting all children of that class, but to no avail. Any ideas?
I’ve just tried this, and it works fine.
I have a parent, which contains a mesh. In the children, I set the mesh.
Later, I can iterate over the parent
Are you doing it differently?
I guess the problem is that I only want it to get the mesh of the object that I am looking at (and therefore picking it up). I tried using a line trace like so:
but it doesn’t seem to work.
Right, but it’s not that class, it’s a subclass
You can cast to the parent class, and that will also work automatically for the children.
Or, use a blueprint interface, and the ‘does support interface’ node.
Thanks alot for the help, i figured it out
2 Likes