public IEnumerable <Object> FetchDependencies(bool isLog = false) { AnimationClip clip = OriginalClip.FindObject(); if (clip == null) { if (isLog) { Logger.Log(LogType.Warning, LogCategory.Export, $"AnimationClipOverride's m_OriginalClip {OriginalClip.ToLogString()} wasn't found "); } } else { yield return(clip); } clip = OverrideClip.FindObject(); if (clip == null) { if (isLog) { Logger.Log(LogType.Warning, LogCategory.Export, $"AnimationClipOverride's m_OverrideClip {OverrideClip.ToLogString()} wasn't found "); } } else { yield return(clip); } }
public YAMLNode ExportYAML(IAssetsExporter exporter) { YAMLMappingNode node = new YAMLMappingNode(); node.Add("m_OriginalClip", OriginalClip.ExportYAML(exporter)); node.Add("m_OverrideClip", OverrideClip.ExportYAML(exporter)); return(node); }
public YAMLNode ExportYAML(IExportContainer container) { YAMLMappingNode node = new YAMLMappingNode(); node.Add("m_OriginalClip", OriginalClip.ExportYAML(container)); node.Add("m_OverrideClip", OverrideClip.ExportYAML(container)); return(node); }
public void Read(AssetStream stream) { OriginalClip.Read(stream); OverrideClip.Read(stream); }
public IEnumerable <Object> FetchDependencies(ISerializedFile file, bool isLog = false) { yield return(OriginalClip.FetchDependency(file, isLog, () => nameof(AnimationClipOverride), "m_OriginalClip")); yield return(OverrideClip.FetchDependency(file, isLog, () => nameof(AnimationClipOverride), "m_OverrideClip")); }
public void Read(AssetReader reader) { OriginalClip.Read(reader); OverrideClip.Read(reader); }
public void Read(EndianStream stream) { OriginalClip.Read(stream); OverrideClip.Read(stream); }