Skip to content

Commit d9db293

Browse files
committed
Add example for plugin init order
FlaxEngine/FlaxEngine#1779
1 parent f6be204 commit d9db293

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

manual/scripting/plugins/index.md

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ Plugins are collection of source code added to your Flax project that can be use
44

55
Example plugin project can be found [here](https://github.com/FlaxEngine/ExamplePlugin), use this as a reference.
66

7+
## In this section
8+
9+
* [Plugins Window](plugins-window.md)
10+
* [Plugin Project](plugin-project.md)
11+
* [How to create a custom editor plugin](../tutorials/custom-plugin.md)
12+
* [How to use custom settings](../tutorials/custom-settings.md)
13+
714
## Introduction
815

916
Flax supports loading native .dll files, C# libraries from *.dll* files and adding references to game projects for use in scripts. Many Flax Engine systems are designed to be extensible, enabling developers to add new features and to modify built-in functionality without modifying engine source code directly.
@@ -172,9 +179,10 @@ public override Guid[] GetReferences()
172179
> [!Note]
173180
> Note: if your plugin uses both **Game Plugin** and **Editor Plugin** types the remember to implement `EditorPlugin.GamePluginType` to point the type of the game plugin.
174181
175-
## In this section
182+
## Plugins Order
176183

177-
* [Plugins Window](plugins-window.md)
178-
* [Plugin Project](plugin-project.md)
179-
* [How to create a custom editor plugin](../tutorials/custom-plugin.md)
180-
* [How to use custom settings](../tutorials/custom-settings.md)
184+
`PluginLoadOrder` attribute allows for specifying the order of the plugin initialization:
185+
186+
```
187+
[PluginLoadOrder(InitializeAfter = typeof(TestPlugin4), DeinitializeBefore = typeof(TestPlugin4))]
188+
```

0 commit comments

Comments
 (0)