Inventory system help

something like this

Even if you were doing a “Trace For Objects” feeding in the type of the object it still would return a FHitResult and an FHitResult is defined as a non-template dataType that holds either a single Actor “Hit Actor” or an array of Actors “Hit Actors”

technically if this was a Trace For Objects you can have additional trust in the “Hit Actor(s)” not needing the isValid() Test but it is still “better to check then to have to troubleshoot without debug”

without a Trace for Object(s) the HitActor from a Line trace could be anything, and as far as the engine is concerned it could be an item, a player, the sky, or the floor; it is “just an actor”