I have the following Slate widget class:
class SItemsDBManagerWidget : public SCompoundWidget
{
SLATE_BEGIN_ARGS(SItemsDBManagerWidget)
: _itemsDBAsset()
{}
SLATE_ARGUMENT(UItemsDBp*, itemsDBAsset)
SLATE_END_ARGS()
public:
void Construct(const FArguments& InArgs);
private:
UItemsDBp* itemsDBAsset;
}
And when I compile it I get the error: SItemsDBManagerWidget::Construct': function does not take 2 arguments ShooterGame
.
Here’s my Construct function:
void SItemsDBManagerWidget::Construct(const FArguments& InArgs)
{
itemsDBAsset = InArgs._itemsDBAsset;
//More code
}
UItemsDBp
is a class that contains a few arrays and a lot of structs.
I’m really new to Slate and since there isn’t much detailed documentation or tutorials about it I’m getting a lot of errors.
If someone could help me I’d appreciate!