I am learning to create a plugin for UE4,I need to show the windows I have created,like this:
TSharedRef Window = SNew(SWindow)
.Title(LOCTEXT)
.SizingRule(ESizingRule::Autosized)
.Content()
[
SNew(SVerticalBox)
+ SVerticalBox::Slot().AutoHeight().Padding(20).HAlign(HAlign_Center)
[
SNew(STextBlock).Text(LOCTEXT(“show”,“Come on,show it!”))
]
];
Window->ShowWindow();
FSlateApplication::Get().AddWindow(Window);
but it doesnt work,I don
t know what i missed?
Any idea?