I decided to use an Actor class for my Weapons (as done in the ShooterGame example).
With Actors, though, I need to **SPAWN **the Actor, I can’t simply do NewObject<…> as I used to do with UObjects.
Looking for a solution in the ShooterGame example, I found this:
This is spawning a Default Weapon inventory with a for loop.
The problem is that I don’t find any definition of the DefaultInventoryClasses
I just found this in the ShooterCharacter.h
UPROPERTY(EditDefaultsOnly, Category=Inventory) TArray<TSubclassOf<class AShooterWeapon> > DefaultInventoryClasses;
It is declared and used, but where is it defined?
I need to know this in order to be able to create a Weapon Inventory!