Example #1
0
        // TODO: Move plugins that use this to GetImporters, and Remove this function
        internal static IEnumerable <PluginDesc> GetExtensionPlugins(BuildTarget target)
        {
            IEnumerable <IEnumerable <PluginDesc> > pluginDescriptions =
                AttributeHelper.CallMethodsWithAttribute <IEnumerable <PluginDesc>, RegisterPluginsAttribute>(target);

            foreach (IEnumerable <PluginDesc> extensionPlugins in pluginDescriptions)
            {
                foreach (PluginDesc pluginDesc in extensionPlugins)
                {
                    yield return(pluginDesc);
                }
            }
        }