示例#1
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);
                }
            }
        }
示例#2
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
        }
示例#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);
                }
            }
        }
        public override IEnumerable <PPtr <Object> > FetchDependencies(DependencyContext context)
        {
            foreach (PPtr <Object> asset in base.FetchDependencies(context))
            {
                yield return(asset);
            }

#if UNIVERSAL
            EditorExtensionLayout layout = context.Layout.EditorExtension;
            if (layout.HasExtensionPtr)
            {
                yield return(context.FetchDependency(ExtensionPtr, layout.ExtensionPtrName));
            }
            if (layout.HasCorrespondingSourceObject)
            {
                yield return(context.FetchDependency(CorrespondingSourceObject, layout.CorrespondingSourceObjectInvariantName));

                yield return(context.FetchDependency(PrefabInstance, layout.PrefabInstanceInvariantName));
            }
            if (layout.HasPrefabAsset)
            {
                yield return(context.FetchDependency(PrefabAsset, layout.PrefabAssetName));
            }
#endif
        }
        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);
            }
        }
        public override IEnumerable <PPtr <Object> > FetchDependencies(DependencyContext context)
        {
            foreach (PPtr <Object> asset in base.FetchDependencies(context))
            {
                yield return(asset);
            }

#if UNIVERSAL
            if (HasEditorPtrs(context.Flags))
            {
                if (HasCorrespondingSourceObject(context.Version, context.Flags))
                {
                    yield return(context.FetchDependency(CorrespondingSourceObject, CorrespondingSourceObjectName));

                    yield return(context.FetchDependency(PrefabInstance, PrefabInstanceName));
                }
                else
                {
                    yield return(context.FetchDependency(ExtensionPtr, ExtensionPtrName));
                }
                if (HasPrefabAsset(context.Version, context.Flags))
                {
                    yield return(context.FetchDependency(PrefabAsset, PrefabAssetName));
                }
            }
#endif
        }
示例#7
0
        public IEnumerable <PPtr <Object> > FetchDependencies(DependencyContext context)
        {
            PropertyModificationLayout layout = context.Layout.PrefabInstance.PropertyModification;

            yield return(context.FetchDependency(Target, layout.TargetName));

            yield return(context.FetchDependency(ObjectReference, layout.ObjectReferenceName));
        }
示例#8
0
        public IEnumerable <PPtr <Object> > FetchDependencies(DependencyContext context)
        {
            yield return(context.FetchDependency(Lightmap, LightmapName));

            yield return(context.FetchDependency(DirLightmap, DirLightmapName));

            yield return(context.FetchDependency(ShadowMask, ShadowMaskName));
        }
示例#9
0
        public IEnumerable <PPtr <Object> > FetchDependencies(DependencyContext context)
        {
            yield return(context.FetchDependency(Mesh, MeshName));

            yield return(context.FetchDependency(MeshRenderer, MeshRendererName));

            yield return(context.FetchDependency(SkinnedMeshRenderer, SkinnedMeshRendererName));
        }
示例#10
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));
        }
示例#11
0
        public IEnumerable <PPtr <Object> > FetchDependencies(DependencyContext context)
        {
            yield return(context.FetchDependency(Texture, TextureName));

            if (HasNormalMap(context.Version))
            {
                yield return(context.FetchDependency(NormalMap, NormalMapName));
            }
        }
示例#12
0
        public override IEnumerable <PPtr <Object> > FetchDependencies(DependencyContext context)
        {
            foreach (PPtr <Object> asset in base.FetchDependencies(context))
            {
                yield return(asset);
            }

            yield return(context.FetchDependency(TerrainData, TerrainDataName));

            yield return(context.FetchDependency(MaterialTemplate, MaterialTemplateName));
        }
示例#13
0
        public override IEnumerable <PPtr <Object> > FetchDependencies(DependencyContext context)
        {
            foreach (PPtr <Object> asset in base.FetchDependencies(context))
            {
                yield return(asset);
            }

            yield return(context.FetchDependency(Start, StartName));

            yield return(context.FetchDependency(End, EndName));
        }
示例#14
0
        public override IEnumerable <PPtr <Object> > FetchDependencies(DependencyContext context)
        {
            foreach (PPtr <Object> asset in base.FetchDependencies(context))
            {
                yield return(asset);
            }

            yield return(context.FetchDependency(OutputAudioMixerGroup, OutputAudioMixerGroupName));

            yield return(context.FetchDependency(AudioClip, AudioClipName));
        }
示例#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(Font, FontName));

            yield return(context.FetchDependency(Material, MaterialName));
        }
示例#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(Avatar, AvatarName));

            yield return(context.FetchDependency(Controller, ControllerName));
        }
        public override IEnumerable <PPtr <Object> > FetchDependencies(DependencyContext context)
        {
            foreach (PPtr <Object> asset in base.FetchDependencies(context))
            {
                yield return(asset);
            }

            yield return(context.FetchDependency(Cookie, CookieName));

            yield return(context.FetchDependency(Flare, FlareName));
        }
示例#18
0
        public override IEnumerable <PPtr <Object> > FetchDependencies(DependencyContext context)
        {
            foreach (PPtr <Object> asset in base.FetchDependencies(context))
            {
                yield return(asset);
            }

            yield return(context.FetchDependency(SourcePrefab, ParentPrefabName));

            yield return(context.FetchDependency(RootGameObject, RootGameObjectName));
        }
示例#19
0
        public override IEnumerable <PPtr <Object> > FetchDependencies(DependencyContext context)
        {
            foreach (PPtr <Object> asset in base.FetchDependencies(context))
            {
                yield return(asset);
            }

            yield return(context.FetchDependency(DiffuseTexture, DiffuseTextureName));

            yield return(context.FetchDependency(NormalMapTexture, NormalMapTextureName));

            yield return(context.FetchDependency(MaskMapTexture, MaskMapTextureName));
        }
示例#20
0
        public IEnumerable <PPtr <Object> > FetchDependencies(DependencyContext context)
        {
            yield return(context.FetchDependency(Texture, TextureName));

            yield return(context.FetchDependency(AlphaTexture, AlphaTextureName));

            if (IsReadSecondaryTextures(context.Version))
            {
                foreach (PPtr <Object> asset in context.FetchDependencies(SecondaryTextures, SecondaryTexturesName))
                {
                    yield return(asset);
                }
            }
        }
示例#21
0
 public IEnumerable <PPtr <Object> > FetchDependencies(DependencyContext context)
 {
     if (HasAdditiveReferencePoseClip(context.Version))
     {
         yield return(context.FetchDependency(AdditiveReferencePoseClip, AdditiveReferencePoseClipName));
     }
 }
示例#22
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);
                }
            }
        }
示例#23
0
 public IEnumerable <PPtr <Object> > FetchDependencies(DependencyContext context)
 {
     if (HasDefaultPhysicMaterial(context.Version))
     {
         yield return(context.FetchDependency(DefaultPhysicMaterial, DefaultPhysicMaterialName));
     }
 }
示例#24
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);
                }
            }
        }
示例#25
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));
 }
示例#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(Materials, MaterialsName))
            {
                yield return(asset);
            }
            yield return(context.FetchDependency(StaticBatchRoot, StaticBatchRootName));

            yield return(context.FetchDependency(ProbeAnchor, ProbeAnchorName));

            yield return(context.FetchDependency(LightProbeVolumeOverride, LightProbeVolumeOverrideName));
        }
        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);
            }
        }
示例#28
0
        public override IEnumerable <PPtr <Object> > FetchDependencies(DependencyContext context)
        {
            foreach (PPtr <Object> asset in base.FetchDependencies(context))
            {
                yield return(asset);
            }

            yield return(context.FetchDependency(Mesh, MeshName));

            if (IsReadMeshes(context.Version))
            {
                yield return(context.FetchDependency(Mesh1, Mesh1Name));

                yield return(context.FetchDependency(Mesh2, Mesh2Name));

                yield return(context.FetchDependency(Mesh3, Mesh3Name));
            }
        }
示例#29
0
        public override IEnumerable <PPtr <Object> > FetchDependencies(DependencyContext context)
        {
            foreach (PPtr <Object> asset in base.FetchDependencies(context))
            {
                yield return(asset);
            }

            yield return(context.FetchDependency(CustomSkybox, CustomSkyboxName));
        }
示例#30
0
        public override IEnumerable <PPtr <Object> > FetchDependencies(DependencyContext context)
        {
            foreach (PPtr <Object> asset in base.FetchDependencies(context))
            {
                yield return(asset);
            }

            yield return(context.FetchDependency(m_navMeshData, NavMeshDataName));
        }