Skip to content

Commit

Permalink
Add example for plugin init order
Browse files Browse the repository at this point in the history
  • Loading branch information
mafiesto4 committed Nov 6, 2023
1 parent f6be204 commit d9db293
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions manual/scripting/plugins/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ Plugins are collection of source code added to your Flax project that can be use

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

## In this section

* [Plugins Window](plugins-window.md)
* [Plugin Project](plugin-project.md)
* [How to create a custom editor plugin](../tutorials/custom-plugin.md)
* [How to use custom settings](../tutorials/custom-settings.md)

## Introduction

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.
Expand Down Expand Up @@ -172,9 +179,10 @@ public override Guid[] GetReferences()
> [!Note]
> 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.
## In this section
## Plugins Order

* [Plugins Window](plugins-window.md)
* [Plugin Project](plugin-project.md)
* [How to create a custom editor plugin](../tutorials/custom-plugin.md)
* [How to use custom settings](../tutorials/custom-settings.md)
`PluginLoadOrder` attribute allows for specifying the order of the plugin initialization:

```
[PluginLoadOrder(InitializeAfter = typeof(TestPlugin4), DeinitializeBefore = typeof(TestPlugin4))]
```

0 comments on commit d9db293

Please sign in to comment.