Add support for bundling custom assets by GamePlugins

This commit is contained in:
Wojtek Figat
2021-07-20 16:32:55 +02:00
parent 88902bdb5d
commit 0794ab4ee5
5 changed files with 78 additions and 6 deletions

View File

@@ -11,5 +11,14 @@ namespace FlaxEngine
/// <seealso cref="FlaxEngine.Plugin" />
public abstract class GamePlugin : Plugin
{
#if FLAX_EDITOR
/// <summary>
/// Event called during game cooking in Editor to collect any assets that this plugin uses. Can be used to inject content for plugins.
/// </summary>
/// <param name="assets">The result assets list (always valid).</param>
public virtual void OnCollectAssets(System.Collections.Generic.List<System.Guid> assets)
{
}
#endif
}
}