Lyra Increase Inventory Space To 9

Hey everyone!

I’ve been diving into the Lyra project and exploring its features while following some great YouTube tutorials. However, there’s one thing I can’t seem to find a solution for online. I’m trying to modify the game so the player can carry up to 9 guns instead of the default 3.

Does anyone know if there’s an easy way to make this adjustment? Or perhaps a tutorial that covers this specific change?

I’d really appreciate any help! Thanks so much, and I hope you all have an amazing day!

You’ll find the 3 slot property in the c++ code, and it’s not exposed to blueprints (under “protected” section):
image

If you want to expose it to Blueprints, you can do as follows and compile the project with your IDE (Visual Studio 2022 or newer or Rider:
image

And you’ll see the property in the editor:


Hey there L.F.A

Thank you so much for your response. For what ever reason I cant delete when I type inside that document. Its like locked or something. I can type some things but I cant delete if I make a mistake or even copy or paste. I don’t do C++ just Visual Scripts so I’m a bit lost when it comes to Visual Studio.

You’ll find good c++ intro courses on YT and Udemy.

You need to have Visual Studio and specific modules installed for working with UE projects. There are plenty of YT videos showing the necessary modules.
After installing it, go to your project folder, right click on project file and generate visual studio project files (*.sln).
image

Open it up and edit the number of slots there. Then, right click on your project name, and select “build” to update the code of your project.

Thank you so much for your help! I will try these suggestions and report back when I get this working. God bless you. =)

1 Like