コード例 #1
0
ファイル: PrefabInstance.cs プロジェクト: lego13/UtinyRipper
        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
ファイル: PrefabInstance.cs プロジェクト: wyfleb/UtinyRipper
        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
        }
コード例 #5
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);
            }
        }
コード例 #6
0
        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
ファイル: ShapeModule.cs プロジェクト: jack111331/UtinyRipper
        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
ファイル: Animator.cs プロジェクト: Zvirtuosity/UtinyRipper
        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));
        }
コード例 #17
0
        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
ファイル: Prefab.cs プロジェクト: Zvirtuosity/UtinyRipper
        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
ファイル: Heightmap.cs プロジェクト: simonynx/UtinyRipper
 public IEnumerable <PPtr <Object> > FetchDependencies(DependencyContext context)
 {
     if (HasDefaultPhysicMaterial(context.Version))
     {
         yield return(context.FetchDependency(DefaultPhysicMaterial, DefaultPhysicMaterialName));
     }
 }
コード例 #24
0
ファイル: Animation.cs プロジェクト: jack111331/UtinyRipper
        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));
        }
コード例 #27
0
        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
ファイル: Skybox.cs プロジェクト: jack111331/UtinyRipper
        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));
        }