Пример #1
0
        public override IEnumerable <PPtr <Object> > FetchDependencies(DependencyContext context)
        {
            foreach (PPtr <Object> asset in base.FetchDependencies(context))
            {
                yield return(asset);
            }

            yield return(context.FetchDependency(Scene, SceneName));

            foreach (PPtr <Object> asset in context.FetchDependencies(Lightmaps, LightmapsName))
            {
                yield return(asset);
            }
            yield return(context.FetchDependency(LightProbes, LightProbesName));

            foreach (PPtr <Object> asset in context.FetchDependencies(LightmappedRendererData, LightmappedRendererDataName))
            {
                yield return(asset);
            }
            foreach (PPtr <Object> asset in context.FetchDependencies(EnlightenSceneMapping, EnlightenSceneMappingName))
            {
                yield return(asset);
            }
            foreach (PPtr <Object> asset in context.FetchDependencies(BakedReflectionProbeCubemaps, BakedReflectionProbeCubemapsName))
            {
                yield return(asset);
            }
        }
Пример #2
0
        public override IEnumerable <PPtr <Object> > FetchDependencies(DependencyContext context)
        {
            if (IsModificationsFormat(context.Version))
            {
                foreach (PPtr <Object> asset in FetchDependenciesObject(context))
                {
                    yield return(asset);
                }

                if (IsRootGameObjectRelevant(context.Flags))
                {
                    yield return(context.FetchDependency(RootGameObject, RootGameObjectName));
                }
                foreach (PPtr <Object> asset in context.FetchDependencies(Modification, ModificationName))
                {
                    yield return(asset);
                }
                yield return(context.FetchDependency(SourcePrefab, SourcePrefabName));
            }
            else
            {
                foreach (PPtr <Object> asset in context.FetchDependencies(Objects, ObjectsName))
                {
                    yield return(asset);
                }
                yield return(context.FetchDependency(Father, FatherName));

                foreach (PPtr <Object> asset in base.FetchDependencies(context))
                {
                    yield return(asset);
                }
            }
        }
Пример #3
0
        public override IEnumerable <PPtr <Object> > FetchDependencies(DependencyContext context)
        {
            PrefabInstanceLayout layout = context.Layout.PrefabInstance;

            if (layout.IsModificationFormat)
            {
                foreach (PPtr <Object> asset in FetchDependenciesObject(context))
                {
                    yield return(asset);
                }

                if (layout.HasRootGameObject)
                {
                    yield return(context.FetchDependency(RootGameObject, layout.RootGameObjectName));
                }
                foreach (PPtr <Object> asset in context.FetchDependencies(Modification, layout.ModificationName))
                {
                    yield return(asset);
                }
                yield return(context.FetchDependency(SourcePrefab, layout.SourcePrefabName));
            }
            else
            {
                foreach (PPtr <Object> asset in context.FetchDependencies(Objects, layout.ObjectsName))
                {
                    yield return(asset);
                }
                yield return(context.FetchDependency(Father, layout.FatherName));

                foreach (PPtr <Object> asset in base.FetchDependencies(context))
                {
                    yield return(asset);
                }
            }
        }
Пример #4
0
        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);
                }
            }
        }
Пример #5
0
        public override IEnumerable <PPtr <Object> > FetchDependencies(DependencyContext context)
        {
            foreach (PPtr <Object> asset in base.FetchDependencies(context))
            {
                yield return(asset);
            }

            foreach (PPtr <Object> asset in context.FetchDependencies(SplatDatabase, SplatDatabaseName))
            {
                yield return(asset);
            }
            foreach (PPtr <Object> asset in context.FetchDependencies(DetailDatabase, DetailDatabaseName))
            {
                yield return(asset);
            }
            foreach (PPtr <Object> asset in context.FetchDependencies(Heightmap, HeightmapName))
            {
                yield return(asset);
            }

            if (HasLightmap(context.Version))
            {
                yield return(context.FetchDependency(Lightmap, LightmapName));
            }
            if (HasPreloadShaders(context.Version))
            {
                foreach (PPtr <Object> asset in context.FetchDependencies(PreloadShaders, PreloadShadersName))
                {
                    yield return(asset);
                }
            }
        }
Пример #6
0
        public override IEnumerable <PPtr <Object> > FetchDependencies(DependencyContext context)
        {
            foreach (PPtr <Object> asset in base.FetchDependencies(context))
            {
                yield return(asset);
            }

            foreach (PPtr <Object> asset in context.FetchDependencies(Deferred, DeferredName))
            {
                yield return(asset);
            }
            foreach (PPtr <Object> asset in context.FetchDependencies(DeferredReflections, DeferredReflectionsName))
            {
                yield return(asset);
            }
            foreach (PPtr <Object> asset in context.FetchDependencies(ScreenSpaceShadows, ScreenSpaceShadowsName))
            {
                yield return(asset);
            }
            foreach (PPtr <Object> asset in context.FetchDependencies(LegacyDeferred, LegacyDeferredName))
            {
                yield return(asset);
            }
            foreach (PPtr <Object> asset in context.FetchDependencies(DepthNormals, DepthNormalsName))
            {
                yield return(asset);
            }
            foreach (PPtr <Object> asset in context.FetchDependencies(MotionVectors, MotionVectorsName))
            {
                yield return(asset);
            }
            foreach (PPtr <Object> asset in context.FetchDependencies(LightHalo, LightHaloName))
            {
                yield return(asset);
            }
            foreach (PPtr <Object> asset in context.FetchDependencies(LensFlare, LensFlareName))
            {
                yield return(asset);
            }

            if (HasAlwaysIncludedShaders(context.Version))
            {
                foreach (PPtr <Object> asset in context.FetchDependencies(AlwaysIncludedShaders, AlwaysIncludedShadersName))
                {
                    yield return(asset);
                }
            }
            if (HasPreloadedShaders(context.Version))
            {
                foreach (PPtr <Object> asset in context.FetchDependencies(PreloadedShaders, PreloadedShadersName))
                {
                    yield return(asset);
                }
            }
            yield return(context.FetchDependency(SpritesDefaultMaterial, SpritesDefaultMaterialName));

            yield return(context.FetchDependency(CustomRenderPipeline, CustomRenderPipelineName));
        }
        public IEnumerable <PPtr <Object> > FetchDependencies(DependencyContext context)
        {
            yield return(context.FetchDependency(TransformParent, TransformParentName));

            foreach (PPtr <Object> asset in context.FetchDependencies(Modifications, ModificationsName))
            {
                yield return(asset);
            }
            foreach (PPtr <Object> asset in context.FetchDependencies(RemovedComponents, RemovedComponentsName))
            {
                yield return(asset);
            }
        }
Пример #8
0
        public IEnumerable <PPtr <Object> > FetchDependencies(DependencyContext context)
        {
            PrefabModificationLayout layout = context.Layout.PrefabInstance.PrefabModification;

            yield return(context.FetchDependency(TransformParent, layout.TransformParentName));

            foreach (PPtr <Object> asset in context.FetchDependencies(Modifications, layout.ModificationsName))
            {
                yield return(asset);
            }
            foreach (PPtr <Object> asset in context.FetchDependencies(RemovedComponents, layout.RemovedComponentsName))
            {
                yield return(asset);
            }
        }
 public IEnumerable <PPtr <Object> > FetchDependencies(DependencyContext context)
 {
     foreach (PPtr <Object> asset in context.FetchDependencies(TreePrototypes, TreeInstancesName))
     {
         yield return(asset);
     }
 }
Пример #10
0
 public IEnumerable <PPtr <Object> > FetchDependencies(DependencyContext context)
 {
     foreach (PPtr <Object> asset in context.FetchDependencies(SecondaryTextures, SecondaryTexturesName))
     {
         yield return(asset);
     }
 }
Пример #11
0
 public IEnumerable <PPtr <Object> > FetchDependencies(DependencyContext context)
 {
     foreach (PPtr <Object> asset in context.FetchDependencies(TexEnvs.Values, TexEnvsName))
     {
         yield return(asset);
     }
 }
Пример #12
0
        public override IEnumerable <PPtr <Object> > FetchDependencies(DependencyContext context)
        {
            foreach (PPtr <Object> asset in base.FetchDependencies(context))
            {
                yield return(asset);
            }

#if UNIVERSAL
            if (HasDefaultProperties(context.Version, context.Flags))
            {
                yield return(context.FetchDependency(DefaultProperties, DefaultReferencesName));
            }
            if (HasDefaultReferences(context.Version, context.Flags))
            {
                foreach (PPtr <Object> asset in context.FetchDependencies(DefaultReferences.Select(t => t.Value), DefaultReferencesName))
                {
                    yield return(asset);
                }
            }
            if (HasIcon(context.Version, context.Flags))
            {
                yield return(context.FetchDependency(Icon, IconName));
            }
#endif
        }
Пример #13
0
 public IEnumerable <PPtr <Object> > FetchDependencies(DependencyContext context)
 {
     foreach (PPtr <Object> asset in context.FetchDependencies(Renderers, RenderersName))
     {
         yield return(asset);
     }
 }
Пример #14
0
 public IEnumerable <PPtr <Object> > FetchDependencies(DependencyContext context)
 {
     foreach (PPtr <Object> asset in context.FetchDependencies(Curve, CurveName))
     {
         yield return(asset);
     }
     yield return(context.FetchDependency(Script, ScriptName));
 }
Пример #15
0
		public override IEnumerable<PPtr<Object>> FetchDependencies(DependencyContext context)
		{
			foreach (PPtr<Object> asset in base.FetchDependencies(context))
			{
				yield return asset;
			}

			yield return context.FetchDependency(OcclusionCullingData, OcclusionCullingDataName);
			foreach (PPtr<Object> asset in context.FetchDependencies(StaticRenderers, StaticRenderersName))
			{
				yield return asset;
			}
			foreach (PPtr<Object> asset in context.FetchDependencies(Portals, PortalsName))
			{
				yield return asset;
			}
		}
Пример #16
0
        public override IEnumerable <PPtr <Object> > FetchDependencies(DependencyContext context)
        {
            foreach (PPtr <Object> asset in base.FetchDependencies(context))
            {
                yield return(asset);
            }

            yield return(context.FetchDependency(MoveWithCustomTransform, MoveWithCustomTransformName));

            foreach (PPtr <Object> asset in context.FetchDependencies(CollisionModule, CollisionModuleName))
            {
                yield return(asset);
            }
            foreach (PPtr <Object> asset in context.FetchDependencies(SubModule, SubModuleName))
            {
                yield return(asset);
            }
        }
        public IEnumerable <PPtr <Object> > FetchDependencies(DependencyContext context)
        {
            yield return(context.FetchDependency(Object, ObjectName));

            foreach (PPtr <Object> asset in context.FetchDependencies(Dependencies, DependenciesName))
            {
                yield return(asset);
            }
        }
Пример #18
0
        public override IEnumerable <PPtr <Object> > FetchDependencies(DependencyContext context)
        {
            foreach (PPtr <Object> asset in base.FetchDependencies(context))
            {
                yield return(asset);
            }

            foreach (PPtr <Object> asset in context.FetchDependencies(Container.Select(t => t.Value), ContainerName))
            {
                yield return(asset);
            }
            if (IsReadDependentAssets(context.Version, context.Flags))
            {
                foreach (PPtr <Object> asset in context.FetchDependencies(DependentAssets, DependentAssetsName))
                {
                    yield return(asset);
                }
            }
        }
Пример #19
0
        public IEnumerable <PPtr <Object> > FetchDependencies(DependencyContext context)
        {
            PPtrCurveLayout layout = context.Layout.AnimationClip.PPtrCurve;

            foreach (PPtr <Object> asset in context.FetchDependencies(Curve, layout.CurveName))
            {
                yield return(asset);
            }
            yield return(context.FetchDependency(Script, layout.ScriptName));
        }
Пример #20
0
        public override IEnumerable <PPtr <Object> > FetchDependencies(DependencyContext context)
        {
            foreach (PPtr <Object> asset in base.FetchDependencies(context))
            {
                yield return(asset);
            }

            foreach (PPtr <Object> asset in context.FetchDependencies(AnimationClips, AnimationClipsName))
            {
                yield return(asset);
            }
            if (IsReadStateMachineBehaviourVectorDescription(context.Version))
            {
                foreach (PPtr <Object> asset in context.FetchDependencies(StateMachineBehaviours, StateMachineBehavioursName))
                {
                    yield return(asset);
                }
            }
        }
Пример #21
0
 public override IEnumerable <PPtr <Object> > FetchDependencies(DependencyContext context)
 {
     foreach (PPtr <Object> asset in base.FetchDependencies(context))
     {
         yield return(asset);
     }
     foreach (PPtr <Object> asset in context.FetchDependencies(Component, ComponentName))
     {
         yield return(asset);
     }
 }
Пример #22
0
        public override IEnumerable <PPtr <Object> > FetchDependencies(DependencyContext context)
        {
            foreach (PPtr <Object> asset in base.FetchDependencies(context))
            {
                yield return(asset);
            }

            if (HasLightProbesLegacy(context.Version))
            {
                yield return(context.FetchDependency(LightProbesLegacy, LightProbesLegacyName));
            }
            if (HasEnlightenSceneMapping(context.Version, context.Flags))
            {
                foreach (PPtr <Object> asset in context.FetchDependencies(EnlightenSceneMapping, EnlightenSceneMappingName))
                {
                    yield return(asset);
                }
            }
            if (HasLightProbes(context.Version, context.Flags))
            {
                yield return(context.FetchDependency(LightProbes, LightProbesName));

                foreach (PPtr <Object> asset in context.FetchDependencies(Lightmaps, LightmapsName))
                {
                    yield return(asset);
                }
            }
#if UNIVERSAL
            if (HasLightmapEditorSettings(context.Version, context.Flags))
            {
                foreach (PPtr <Object> asset in context.FetchDependencies(LightmapEditorSettings, LightmapEditorSettingsName))
                {
                    yield return(asset);
                }
            }
            if (HasLightingDataAsset(context.Version, context.Flags))
            {
                yield return(context.FetchDependency(LightingDataAsset, LightingDataAssetName));
            }
#endif
        }
Пример #23
0
        public override IEnumerable <PPtr <Object> > FetchDependencies(DependencyContext context)
        {
            foreach (PPtr <Object> asset in base.FetchDependencies(context))
            {
                yield return(asset);
            }

            foreach (PPtr <Object> asset in context.FetchDependencies(m_container.Select(t => t.Value), ContainerName))
            {
                yield return(asset);
            }
        }
Пример #24
0
		public override IEnumerable<PPtr<Object>> FetchDependencies(DependencyContext context)
		{
			foreach (PPtr<Object> asset in base.FetchDependencies(context))
			{
				yield return asset;
			}

			foreach (PPtr<Object> asset in context.FetchDependencies(SpriteSheet, SpriteSheetName))
			{
				yield return asset;
			}
		}
Пример #25
0
        public override IEnumerable <PPtr <Object> > FetchDependencies(DependencyContext context)
        {
            foreach (PPtr <Object> asset in base.FetchDependencies(context))
            {
                yield return(asset);
            }

            foreach (PPtr <Object> asset in context.FetchDependencies(AssetToPrefab.Values, AssetToPrefabName))
            {
                yield return(asset);
            }
        }
Пример #26
0
        public override IEnumerable <PPtr <Object> > FetchDependencies(DependencyContext context)
        {
            foreach (PPtr <Object> asset in base.FetchDependencies(context))
            {
                yield return(asset);
            }

            foreach (PPtr <Object> asset in context.FetchDependencies(m_shaders.Select(t => t.Key), ShadersName))
            {
                yield return(asset);
            }
        }
Пример #27
0
        public IEnumerable <PPtr <Object> > FetchDependencies(DependencyContext context)
        {
            if (HasTerrainLayers(context.Version))
            {
                foreach (PPtr <Object> asset in context.FetchDependencies(TerrainLayers, TerrainLayersName))
                {
                    yield return(asset);
                }
            }
            else
            {
                foreach (PPtr <Object> asset in context.FetchDependencies(Splats, SplatsName))
                {
                    yield return(asset);
                }
            }

            foreach (PPtr <Object> asset in context.FetchDependencies(AlphaTextures, AlphaTexturesName))
            {
                yield return(asset);
            }
        }
Пример #28
0
        public override IEnumerable <PPtr <Object> > FetchDependencies(DependencyContext context)
        {
            foreach (PPtr <Object> asset in base.FetchDependencies(context))
            {
                yield return(asset);
            }

            foreach (PPtr <Object> asset in context.FetchDependencies(Children, ChildrenName))
            {
                yield return(asset);
            }
            yield return(context.FetchDependency(Father, FatherName));
        }
Пример #29
0
 public IEnumerable <PPtr <Object> > FetchDependencies(DependencyContext context)
 {
     foreach (PPtr <Object> asset in context.FetchDependencies(DetailPrototypes, DetailPrototypesName))
     {
         yield return(asset);
     }
     if (HasAtlasTexture(context.Version))
     {
         yield return(context.FetchDependency(AtlasTexture, AtlasTextureName));
     }
     foreach (PPtr <Object> asset in TreeDatabase.FetchDependencies(context))
     {
         yield return(asset);
     }
     if (!HasAtlasTexture(context.Version))
     {
         foreach (PPtr <Object> asset in context.FetchDependencies(PreloadTextureAtlasData, PreloadTextureAtlasDataName))
         {
             yield return(asset);
         }
     }
 }
Пример #30
0
 public IEnumerable <PPtr <Object> > FetchDependencies(DependencyContext context)
 {
     if (Type == PrimitiveType.Complex)
     {
         if (IsArray)
         {
             ISerializableStructure[] structures = (ISerializableStructure[])Value;
             foreach (PPtr <Object> asset in context.FetchDependencies(structures, Name))
             {
                 yield return(asset);
             }
         }
         else
         {
             ISerializableStructure structure = (ISerializableStructure)Value;
             foreach (PPtr <Object> asset in context.FetchDependencies(structure, Name))
             {
                 yield return(asset);
             }
         }
     }
 }