Files
FlaxEngine/Source/Engine/Scripting/Plugins/PluginManager.cs
2024-02-26 19:00:48 +01:00

18 lines
485 B
C#

// Copyright (c) 2012-2024 Wojciech Figat. All rights reserved.
namespace FlaxEngine
{
partial class PluginManager
{
/// <summary>
/// Returns the first plugin of the provided type.
/// </summary>
/// <typeparam name="T">The plugin type.</typeparam>
/// <returns>The plugin, or null if not loaded.</returns>
public static T GetPlugin<T>() where T : Plugin
{
return (T)GetPlugin(typeof(T));
}
}
}