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

            foreach (Object asset in Deferred.FetchDependencies(file, isLog))
            {
                yield return(asset);
            }
            foreach (Object asset in DeferredReflections.FetchDependencies(file, isLog))
            {
                yield return(asset);
            }
            foreach (Object asset in ScreenSpaceShadows.FetchDependencies(file, isLog))
            {
                yield return(asset);
            }
            foreach (Object asset in LegacyDeferred.FetchDependencies(file, isLog))
            {
                yield return(asset);
            }
            foreach (Object asset in DepthNormals.FetchDependencies(file, isLog))
            {
                yield return(asset);
            }
            foreach (Object asset in MotionVectors.FetchDependencies(file, isLog))
            {
                yield return(asset);
            }
            foreach (Object asset in LightHalo.FetchDependencies(file, isLog))
            {
                yield return(asset);
            }
            foreach (Object asset in LensFlare.FetchDependencies(file, isLog))
            {
                yield return(asset);
            }

            if (IsReadAlwaysIncludedShaders(file.Version))
            {
                foreach (PPtr <Shader> alwaysIncludedShader in AlwaysIncludedShaders)
                {
                    yield return(alwaysIncludedShader.FetchDependency(file, isLog, ToLogString, "m_AlwaysIncludedShaders"));
                }
            }
            if (IsReadPreloadedShaders(file.Version))
            {
                foreach (PPtr <ShaderVariantCollection> preloadedShader in PreloadedShaders)
                {
                    yield return(preloadedShader.FetchDependency(file, isLog, ToLogString, "m_PreloadedShaders"));
                }
            }
            yield return(SpritesDefaultMaterial.FetchDependency(file, isLog, ToLogString, "m_SpritesDefaultMaterial"));

            yield return(CustomRenderPipeline.FetchDependency(file, isLog, ToLogString, "m_CustomRenderPipeline"));
        }