protected static void OnPostBuild(AssetBundleManifest manifest) { foreach (Type type in (from type in EZEditorUtility.GetAllTypes() where type.IsClass select type)) { foreach (MethodInfo methods in type.GetMethods(BindingFlags.Static | BindingFlags.Public | BindingFlags.NonPublic)) { if (methods.IsDefined(typeof(OnPostBuildAttribute), false)) { methods.Invoke(null, new object[] { manifest }); } } } }
private void RefreshShaders() { shadersInProject = EZEditorUtility.GetAllShaders(true); shadersInProject.Sort((s1, s2) => string.Compare(s1.name, s2.name)); }