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

            if (IsReadEditorData(file.Flags))
            {
                foreach (Object asset in EditorData.FetchDependencies(file))
                {
                    yield return(asset);
                }
                yield return(MasterAtlas.FetchDependency(file, isLog, () => nameof(SpriteAtlas), nameof(MasterAtlas)));
            }
            foreach (PPtr <Sprite> sprite in PackedSprites)
            {
                yield return(sprite.FetchDependency(file, isLog, ToLogString, "PackedSprite"));
            }
            foreach (SpriteAtlasData atlasData in RenderDataMap.Values)
            {
                foreach (Object asset in atlasData.FetchDependencies(file))
                {
                    yield return(asset);
                }
            }
        }