コード例 #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);
 }