Hi
I’m having trouble declaring an SNumericEntryBox in Slate. Declaring other types of widgets seems to work (SButton, STextBlock etc)
Problem occured I believe when switching from Slate to SlateBasics.h
Please help! What am I missing here???
Using 4.7.6 (latest hotfix)
This is for a plugin extending the editor.
.....
vertBox->AddSlot()
.AutoHeight()
[
SNew(SHorizontalBox)
+ SHorizontalBox::Slot()
.VAlign(VAlign_Center)
[
SNew(STextBlock).Text(LOCTEXT("Category", "Name"))
]
+ SHorizontalBox::Slot()
.VAlign(VAlign_Center)
[
SNew(SNumericEntryBox<int32>)
.Value(this, &MyClassName::GetVariable)
.OnValueChanged(this, &MyClassName::SetVariable)
.AllowSpin(false)
.LabelPadding(0)
.MinValue(1)
.MaxValue(100)
]
];
etc.