public override IEnumerable <Object> FetchDependencies(bool isLog = false) { foreach (Object @object in base.FetchDependencies(isLog)) { yield return(@object); } foreach (PPtr <Material> ptr in Materials) { if (ptr.IsNull) { continue; } Material mat = ptr.FindObject(); if (mat == null) { if (isLog) { Logger.Log(LogType.Warning, LogCategory.Export, $"{ToLogString()} m_Materials {ptr.ToLogString()} wasn't found "); } } else { yield return(mat); } } if (!StaticBatchRoot.IsNull) { yield return(StaticBatchRoot.GetObject()); } if (!ProbeAnchor.IsNull) { yield return(ProbeAnchor.GetObject()); } if (!LightProbeVolumeOverride.IsNull) { yield return(LightProbeVolumeOverride.GetObject()); } }
public override IEnumerable <Object> FetchDependencies(ISerializedFile file, bool isLog = false) { foreach (Object @object in base.FetchDependencies(file, isLog)) { yield return(@object); } foreach (PPtr <Material> material in Materials) { yield return(material.FetchDependency(file, isLog, ToLogString, "m_Materials")); } if (!StaticBatchRoot.IsNull) { yield return(StaticBatchRoot.GetObject(file)); } if (!ProbeAnchor.IsNull) { yield return(ProbeAnchor.GetObject(file)); } if (!LightProbeVolumeOverride.IsNull) { yield return(LightProbeVolumeOverride.GetObject(file)); } }