public override IEnumerable <PPtr <Object> > FetchDependencies(DependencyContext context) { foreach (PPtr <Object> asset in base.FetchDependencies(context)) { yield return(asset); } AnimationLayout layout = context.Layout.Animation; yield return(context.FetchDependency(DefaultAnimation, layout.AnimationName)); if (layout.HasAnimationsPaired) { foreach (PPtr <Object> asset in context.FetchDependencies(AnimationsPaired.Select(t => t.Item2), layout.AnimationsName)) { yield return(asset); } } else { foreach (PPtr <Object> asset in context.FetchDependencies(Animations, layout.AnimationsName)) { yield return(asset); } } }
public override IEnumerable <Object> FetchDependencies(ISerializedFile file, bool isLog = false) { foreach (Object asset in base.FetchDependencies(file, isLog)) { yield return(asset); } yield return(DefaultAnimation.FetchDependency(file, isLog, ToLogString, "m_DefaultAnimation")); if (IsReadAnimationsPaired(file.Version)) { foreach (PPtr <AnimationClip> clip in AnimationsPaired.Select(t => t.Item2)) { yield return(clip.FetchDependency(file, isLog, ToLogString, "m_Animations")); } } else { foreach (PPtr <AnimationClip> clip in Animations) { yield return(clip.FetchDependency(file, isLog, ToLogString, "m_Animations")); } } }
public override IEnumerable <PPtr <Object> > FetchDependencies(DependencyContext context) { foreach (PPtr <Object> asset in base.FetchDependencies(context)) { yield return(asset); } yield return(context.FetchDependency(DefaultAnimation, AnimationName)); if (IsReadAnimationsPaired(context.Version)) { foreach (PPtr <Object> asset in context.FetchDependencies(AnimationsPaired.Select(t => t.Item2), AnimationsName)) { yield return(asset); } } else { foreach (PPtr <Object> asset in context.FetchDependencies(Animations, AnimationsName)) { yield return(asset); } } }