for(int i = 0; i < Width; i++){
for(int k = 0; k < Height; k++){
SCanvas::FSlot& TMP_SLOT = Canvas->AddSlot()
[
SNew(SItemSlotSlate)
];
TMP_SLOT.Position(FVector2D(i * 50, k * 50));
TMP_SLOT.Size(FVector2D(45, 45));
}
}
SCanvas has method AddSlot() which returns SCanvas::FSlot . You can see all methods in SCanvas.h.
Also in that method you can see the implementation of SCanvas::FSlot with available methods or you can read the documentation of SCanvas::FSlot here: FSlot | Unreal Engine Documentation