How can I load my plug-in so that both functions work properly?
I have create a new plugin (ToolbarButton.)
In .uplugin i try:
Type: Editor, LoadingPhase: Default.
ContentBrowserSingleton.SyncBrowserToAssets(NewDatas, false, true, "", true);
Has an Error. in SContentBrowser.cpp] [Line: 2716]
Because, i try start automatic this code if the Editor start. I would like to start a new ContentBrowser and have it displayed immediately. I want to see the new files that have been downloaded from SVN.
This Code is in StartupModule():
FToolbarButtonModule::PluginButtonClicked();
I wanted to have the script run right away. If my project is not possible, I can leave it out and click the button.
If I adjust these settings: “Type”: “Editor” “LoadingPhase”: “PostEngineInit”, then I can start the editor without error. I have my ToolbarButton and my ContentBrowser is in the background in the new window. I wanted a second new window to open. Which also works when I click the button. But it’s not good if I always have to move this ContentBrowser into the editor after every start. When closing the editor, a task should also be completed. There is an error with this script in ShutdownModule()
auto ObjectLibrary = UObjectLibrary::CreateLibrary(UObject::StaticClass(), false, true);
With this script I want to write a list of the files of the content in a text file. The button works very well. only the start and end commands don’t work. What could I do to make this work?
I have the script as an attachment.