예제 #1
0
        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);
            }
        }
예제 #2
0
        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);
        }
예제 #3
0
        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);
        }
예제 #4
0
 public void Read(AssetStream stream)
 {
     OriginalClip.Read(stream);
     OverrideClip.Read(stream);
 }
예제 #5
0
        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"));
        }
예제 #6
0
 public void Read(AssetReader reader)
 {
     OriginalClip.Read(reader);
     OverrideClip.Read(reader);
 }
예제 #7
0
 public void Read(EndianStream stream)
 {
     OriginalClip.Read(stream);
     OverrideClip.Read(stream);
 }