You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Search for all instances of BaseUnityPlugin loaded by chainloader or other means.
40
+
/// </summary>
41
+
publicstaticBaseUnityPlugin[]FindPlugins()
42
+
{
43
+
// Search for instances of BaseUnityPlugin to also find dynamically loaded plugins.
44
+
// Have to use FindObjectsOfType(Type) instead of FindObjectsOfType<T> because the latter is not available in some older unity versions.
45
+
// Still look inside Chainloader.PluginInfos in case the BepInEx_Manager GameObject uses HideFlags.HideAndDontSave, which hides it from Object.Find methods.
0 commit comments