Shooter Tutorial – Inventory & Items

Finally, my massive Inventory & Items tutorial is live! It covers nearly 100% of the context you need to build inventory systems.

2 responses to “Shooter Tutorial – Inventory & Items”

  1. Hello, ths for writting this tutorial, is nice to see someone is doing something deeper than the usual tutorial content found over the internet.

    I have a question, you create the EItemFragmentType enum as a workaround for something that is missing in BP but aviable in C++. Wich is the C++ way of doing that? You mean using IsA() function?

    Thank you!

    • Not IsA() but an template function to get specific fragment. Something like:
      template
      const TItemFragmentType* GetFragmentDefinition() const
      {
      for (UItemFragment* Fragment : Fragments)
      {
      if (Fragment->IsA(TItemFragmentType::StaticClass()))
      {
      return static_cast(Fragment);
      }
      }
      return nullptr;
      }

Leave a comment