public static StrippingInfo GetBuildReportData(BuildReport report) { if (report == null) { return(null); } StrippingInfo[] appendices = (StrippingInfo[])report.GetAppendices(typeof(StrippingInfo)); if (appendices.Length > 0) { return(appendices[0]); } StrippingInfo info2 = ScriptableObject.CreateInstance <StrippingInfo>(); report.AddAppendix(info2); return(info2); }
private void OnEnable() { this.SetIcon("Required by Scripts", "class/MonoScript"); this.SetIcon(StrippingInfo.ModuleName("AI"), "class/NavMeshAgent"); this.SetIcon(StrippingInfo.ModuleName("Animation"), "class/Animation"); this.SetIcon(StrippingInfo.ModuleName("Audio"), "class/AudioSource"); this.SetIcon(StrippingInfo.ModuleName("Core"), "class/GameManager"); this.SetIcon(StrippingInfo.ModuleName("IMGUI"), "class/GUILayer"); this.SetIcon(StrippingInfo.ModuleName("ParticleSystem"), "class/ParticleSystem"); this.SetIcon(StrippingInfo.ModuleName("ParticlesLegacy"), "class/EllipsoidParticleEmitter"); this.SetIcon(StrippingInfo.ModuleName("Physics"), "class/PhysicMaterial"); this.SetIcon(StrippingInfo.ModuleName("Physics2D"), "class/PhysicsMaterial2D"); this.SetIcon(StrippingInfo.ModuleName("TextRendering"), "class/Font"); this.SetIcon(StrippingInfo.ModuleName("UI"), "class/CanvasGroup"); this.SetIcon(StrippingInfo.ModuleName("Umbra"), "class/OcclusionCullingSettings"); this.SetIcon(StrippingInfo.ModuleName("UNET"), "class/NetworkTransform"); this.SetIcon(StrippingInfo.ModuleName("Vehicles"), "class/WheelCollider"); this.SetIcon(StrippingInfo.ModuleName("Cloth"), "class/Cloth"); }
public static StrippingInfo GetBuildReportData(BuildReport report) { StrippingInfo result; if (report == null) { result = null; } else { StrippingInfo[] array = (StrippingInfo[])report.GetAppendices(typeof(StrippingInfo)); if (array.Length > 0) { result = array[0]; } else { StrippingInfo strippingInfo = ScriptableObject.CreateInstance<StrippingInfo>(); report.AddAppendix(strippingInfo); result = strippingInfo; } } return result; }