ScriptableFactoryRegistry
Singleton registry that discovers and indexes all factories in the project.
Definition
Namespace: Paragon.Core.ScriptableFactory
Assembly: Paragon.dll
[SingletonSettings(AssetPath = "Scriptable Factory Registry")]
public class ScriptableFactoryRegistry : SingletonScriptableObject<ScriptableFactoryRegistry>Inheritance: SingletonScriptableObject<T> → ScriptableFactoryRegistry
Static Methods
GetAllFactories()
Returns all registered factories.
public static IEnumerable<ScriptableFactory> GetAllFactories();GetAllFactoriesOfType()
Returns factories of a specific type.
public static IEnumerable<ScriptableFactory> GetAllFactoriesOfType(Type factoryType);
public static IEnumerable<TFactory> GetAllFactoriesOfType<TFactory>() where TFactory : IScriptableFactory;Editor Behavior
In the editor, Initialize() is called on load to scan the AssetDatabase and populate the registry.
See Also
Last updated
Was this helpful?