コード例 #1
0
        public override IEnumerable <Object> FetchDependencies(ISerializedFile file, bool isLog = false)
        {
            foreach (Object asset in base.FetchDependencies(file, isLog))
            {
                yield return(asset);
            }

#if UNIVERSAL
            if (IsReadDefaultProperties(file.Version, file.Flags))
            {
                yield return(DefaultProperties.FetchDependency(file, isLog, ToLogString, DefaultReferencesName));
            }
            if (IsReadDefaultReferences(file.Version, file.Flags))
            {
                foreach (PPtr <Object> reference in DefaultReferences.Values)
                {
                    yield return(reference.FetchDependency(file, isLog, ToLogString, DefaultReferencesName));
                }
            }
            if (IsReadIcon(file.Version, file.Flags))
            {
                yield return(Icon.FetchDependency(file, isLog, ToLogString, IconName));
            }
#endif
        }