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

            yield return(Scene.FetchDependency(file, isLog, ToLogString, "m_Scene"));

            foreach (LightmapData lightmapData in Lightmaps)
            {
                foreach (Object @object in lightmapData.FetchDependencies(file, isLog))
                {
                    yield return(@object);
                }
            }
            yield return(LightProbes.FetchDependency(file, isLog, ToLogString, "m_LightProbes"));

            foreach (RendererData rendererData in LightmappedRendererData)
            {
                foreach (Object @object in rendererData.FetchDependencies(file, isLog))
                {
                    yield return(@object);
                }
            }
            foreach (Object @object in EnlightenSceneMapping.FetchDependencies(file, isLog))
            {
                yield return(@object);
            }
            foreach (PPtr <Texture> cubemap in BakedReflectionProbeCubemaps)
            {
                yield return(cubemap.FetchDependency(file, isLog, ToLogString, "m_BakedReflectionProbeCubemaps"));
            }
        }
示例#2
0
        public override IEnumerable <Object> FetchDependencies(ISerializedFile file, bool isLog = false)
        {
            foreach (Object asset in base.FetchDependencies(file, isLog))
            {
                yield return(asset);
            }

            if (IsReadEnlightenSceneMapping(file.Version, file.Flags))
            {
                foreach (Object asset in EnlightenSceneMapping.FetchDependencies(file, isLog))
                {
                    yield return(asset);
                }
            }
            if (IsReadLightProbes(file.Version, file.Flags))
            {
                yield return(LightProbes.FetchDependency(file, isLog, ToLogString, "m_LightProbes"));

                foreach (LightmapData lightmap in Lightmaps)
                {
                    foreach (Object asset in lightmap.FetchDependencies(file, isLog))
                    {
                        yield return(asset);
                    }
                }
            }
#if UNIVERSAL
            if (IsReadLightmapEditorSettings(file.Version, file.Flags))
            {
                foreach (Object asset in LightmapEditorSettings.FetchDependencies(file, isLog))
                {
                    yield return(asset);
                }
            }
            if (IsReadLightingDataAsset(file.Version, file.Flags))
            {
                yield return(LightingDataAsset.FetchDependency(file, isLog, ToLogString, LightingDataAssetName));
            }
#endif
        }