# module loading phase

**URL:** <https://forums.unrealengine.com/t/module-loading-phase/472083>\
**Category:** Plugins\
**Tags:** modules, loading, unreal-engine, editor, Plugins, question, CPP\
**Created:** [September 28, 2020, 5:50pm UTC](https://forums.unrealengine.com/t/module-loading-phase/472083 "2020-09-28T17:50:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dj\_EKI](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Dj\_EKI](https://forums.unrealengine.com/u/Dj_EKI)\
**Post date:** [September 28, 2020, 5:50pm UTC](https://forums.unrealengine.com/t/module-loading-phase/472083/1 "2020-09-28T17:50:14Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![glitchysparx](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@glitchysparx](https://forums.unrealengine.com/u/glitchysparx)\
**Post date:** [October 3, 2024, 9:54am UTC](https://forums.unrealengine.com/t/module-loading-phase/472083/2 "2024-10-03T09:54:30Z")

</div>

Did you solve it?
