public static void AddOptionsDrawer(ICustomBuildOptionsDrawer customDrawer) { if (_customAndroidExtension == null) { _customAndroidExtension = new CustomAndroidWindowExtension(); UnityEditor.Android.TargetExtension.s_BuildWindow = _customAndroidExtension; } _customAndroidExtension.CustomDrawers.Add(customDrawer); }
public static void AddIosOptionsDrawer(ICustomBuildOptionsDrawer customDrawer) { if (!ModuleManager.platformSupportModules.ContainsKey(Ios)) { return; } if (_customIosExtension == null) { _customIosExtension = new CustomIosWindowExtension(); ((UnityEditor.iOS.TargetExtension)ModuleManager.platformSupportModules[Ios]).buildWindow = _customIosExtension; } _customIosExtension.CustomDrawers.Add(customDrawer); }