Hello everyone,
I am trying to create a custom node for blueprint that creates an instance of a given class in the memory so I can use it for reference later. I have been working with blueprints since my c++ knowledge is pretty bad I know Java and Python, but the syntax in C++ is a mystery at this time.
So I made an inventory system, where I originally created an extension of AActor class “InventoryItem” and created an extension of that class for different types of items with a struct and some variables describing the item.
The problem became apparent when I tried to reference these objects in blueprints, because of course they can’t be referenced without first being created. So I discovered that with AActor classes you need to spawn them in the world to be able to reference them… Spawning the objects in the world seems, less than optimal, and I would like a way to simply create an instance of it in the computer’s memory for reference later without spawning an actor.
So it seems I need to extend directly from the UObject class, but this class has no blueprint function to create an instance in memory.
I found this page: https://wiki.unrealengine.com/Blueprint_Node:_Create_Object_from_Blueprint
But I can’t figure out how to get it to work…
Anyone know how to solve this? REALLY need some help