コード例 #1
0
        protected override void GetDepsFromImpl(object obj, GetDepsFromContext context)
        {
            base.GetDepsFromImpl(obj, context);
            if (obj == null)
            {
                return;
            }

            object persistentCalls = m_persistentCallGroupInfo.GetValue(obj);

            if (persistentCalls == null)
            {
                return;
            }

            object calls = m_callsInfo.GetValue(persistentCalls);

            if (calls == null)
            {
                return;
            }

            IList list = (IList)calls;

            for (int i = 0; i < list.Count; ++i)
            {
                object call = list[i];
                PersistentPersistentCall <TID> persistentCall = new PersistentPersistentCall <TID>();
                persistentCall.GetDepsFrom(call, context);
            }
        }
コード例 #2
0
        protected override void GetDepsFromImpl(object obj, GetDepsFromContext context)
        {
            base.GetDepsFromImpl(obj, context);
            TerrainCollider uo = (TerrainCollider)obj;

            AddDep(uo.terrainData, context);
        }
        protected override void GetDepsFromImpl(object obj, GetDepsFromContext context)
        {
            base.GetDepsFromImpl(obj, context);
            Material uo = (Material)obj;

            AddDep(uo.shader, context);
        }
        protected override void GetDepsFromImpl(object obj, GetDepsFromContext context)
        {
            base.GetDepsFromImpl(obj, context);
            Text uo = (Text)obj;

            AddDep(uo.font, context);
        }
コード例 #5
0
        protected override void GetDepsFromImpl(object obj, GetDepsFromContext context)
        {
            base.GetDepsFromImpl(obj, context);
            MaterialPalette uo = (MaterialPalette)obj;

            AddDep(uo.Materials, context);
        }
        protected override void GetDepsFromImpl(object obj, GetDepsFromContext context)
        {
            base.GetDepsFromImpl(obj, context);
            TreePrototype uo = (TreePrototype)obj;

            AddDep(uo.prefab, context);
        }
        protected override void GetDepsFromImpl(object obj, GetDepsFromContext context)
        {
            base.GetDepsFromImpl(obj, context);
            Animator uo = (Animator)obj;

            AddDep(uo.runtimeAnimatorController, context);
        }
コード例 #8
0
        protected override void GetDepsFromImpl(object obj, GetDepsFromContext context)
        {
            base.GetDepsFromImpl(obj, context);
            ParticleSystemForceField uo = (ParticleSystemForceField)obj;

            AddDep(uo.vectorField, context);
        }
        protected override void GetDepsFromImpl(object obj, GetDepsFromContext context)
        {
            base.GetDepsFromImpl(obj, context);
            MeshFilter uo = (MeshFilter)obj;

            AddDep(uo.sharedMesh, context);
        }
        protected override void GetDepsFromImpl(object obj, GetDepsFromContext context)
        {
            base.GetDepsFromImpl(obj, context);
            Graphic uo = (Graphic)obj;

            AddDep(uo.material, context);
        }
コード例 #11
0
        protected override void GetDepsFromImpl(object obj, GetDepsFromContext context)
        {
            base.GetDepsFromImpl(obj, context);
            Camera uo = (Camera)obj;

            AddDep(uo.targetTexture, context);
        }
コード例 #12
0
        public override void GetDepsFrom(object obj, GetDepsFromContext context)
        {
            base.GetDepsFrom(obj, context);
            if (obj == null)
            {
                return;
            }

            Material           o          = (Material)obj;
            RuntimeShaderInfo  shaderInfo = null;
            IRuntimeShaderUtil shaderUtil = IOC.Resolve <IRuntimeShaderUtil>();

            if (shaderUtil != null)
            {
                shaderInfo = shaderUtil.GetShaderInfo(o.shader);
            }

            if (shaderInfo == null)
            {
                return;
            }

            for (int i = 0; i < shaderInfo.PropertyCount; ++i)
            {
                string name = shaderInfo.PropertyNames[i];
                RTShaderPropertyType type = shaderInfo.PropertyTypes[i];
                switch (type)
                {
                case RTShaderPropertyType.TexEnv:
                    AddDep(o.GetTexture(name), context);
                    break;
                }
            }
        }
コード例 #13
0
        protected override void GetDepsFromImpl(object obj, GetDepsFromContext context)
        {
            base.GetDepsFromImpl(obj, context);
            MaskableGraphic uo = (MaskableGraphic)obj;

            AddSurrogateDeps(uo.onCullStateChanged, v_ => (PersistentMaskableGraphicNestedCullStateChangedEvent <TID>)v_, context);
        }
        public override void GetDepsFrom(object obj, GetDepsFromContext context)
        {
            base.GetDepsFrom(obj, context);
            if (obj == null)
            {
                return;
            }

            ParticleSystem o = (ParticleSystem)obj;

            AddSurrogateDeps(o.collision, v_ => (PersistentParticleSystemNestedCollisionModule_RTSL_Template)v_, context);
            AddSurrogateDeps(o.colorBySpeed, v_ => (PersistentParticleSystemNestedColorBySpeedModule <TID>)v_, context);
            AddSurrogateDeps(o.colorOverLifetime, v_ => (PersistentParticleSystemNestedColorOverLifetimeModule <TID>)v_, context);
            AddSurrogateDeps(o.customData, v_ => (PersistentParticleSystemNestedCustomDataModule_RTSL_Template)v_, context);
            AddSurrogateDeps(o.emission, v_ => (PersistentParticleSystemNestedEmissionModule_RTSL_Template)v_, context);
            AddSurrogateDeps(o.externalForces, v_ => (PersistentParticleSystemNestedExternalForcesModule_RTSL_Template)v_, context);
            AddSurrogateDeps(o.forceOverLifetime, v_ => (PersistentParticleSystemNestedForceOverLifetimeModule <TID>)v_, context);
            AddSurrogateDeps(o.inheritVelocity, v_ => (PersistentParticleSystemNestedInheritVelocityModule <TID>)v_, context);
            AddSurrogateDeps(o.lights, v_ => (PersistentParticleSystemNestedLightsModule <TID>)v_, context);
            AddSurrogateDeps(o.limitVelocityOverLifetime, v_ => (PersistentParticleSystemNestedLimitVelocityOverLifetimeModule <TID>)v_, context);
            AddSurrogateDeps(o.main, v_ => (PersistentParticleSystemNestedMainModule <TID>)v_, context);
            AddSurrogateDeps(o.noise, v_ => (PersistentParticleSystemNestedNoiseModule <TID>)v_, context);
            AddSurrogateDeps(o.rotationBySpeed, v_ => (PersistentParticleSystemNestedRotationBySpeedModule <TID>)v_, context);
            AddSurrogateDeps(o.rotationOverLifetime, v_ => (PersistentParticleSystemNestedRotationOverLifetimeModule <TID>)v_, context);
            AddSurrogateDeps(o.shape, v_ => (PersistentParticleSystemNestedShapeModule <TID>)v_, context);
            AddSurrogateDeps(o.sizeBySpeed, v_ => (PersistentParticleSystemNestedSizeBySpeedModule <TID>)v_, context);
            AddSurrogateDeps(o.sizeOverLifetime, v_ => (PersistentParticleSystemNestedSizeOverLifetimeModule <TID>)v_, context);
            AddSurrogateDeps(o.subEmitters, v_ => (PersistentParticleSystemNestedSubEmittersModule_RTSL_Template)v_, context);
            AddSurrogateDeps(o.textureSheetAnimation, v_ => (PersistentParticleSystemNestedTextureSheetAnimationModule_RTSL_Template)v_, context);
            AddSurrogateDeps(o.trails, v_ => (PersistentParticleSystemNestedTrailModule <TID>)v_, context);
            AddSurrogateDeps(o.trigger, v_ => (PersistentParticleSystemNestedTriggerModule_RTSL_Template)v_, context);
            AddSurrogateDeps(o.velocityOverLifetime, v_ => (PersistentParticleSystemNestedVelocityOverLifetimeModule <TID>)v_, context);
        }
コード例 #15
0
        protected override void GetDepsFromImpl(object obj, GetDepsFromContext context)
        {
            base.GetDepsFromImpl(obj, context);
            Button uo = (Button)obj;

            AddSurrogateDeps(uo.onClick, v_ => (PersistentButtonNestedButtonClickedEvent <TID>)v_, context);
        }
コード例 #16
0
        protected override void GetDepsFromImpl(object obj, GetDepsFromContext context)
        {
            base.GetDepsFromImpl(obj, context);
            TerrainBrushSource uo = (TerrainBrushSource)obj;

            AddDep(uo.UserTextures, context);
        }
コード例 #17
0
        protected override void GetDepsFromImpl(object obj, GetDepsFromContext context)
        {
            base.GetDepsFromImpl(obj, context);
            MeshRenderer uo = (MeshRenderer)obj;

            AddDep(uo.additionalVertexStreams, context);
        }
コード例 #18
0
        protected override void GetDepsFromImpl(object obj, GetDepsFromContext context)
        {
            base.GetDepsFromImpl(obj, context);
            Canvas uo = (Canvas)obj;

            AddDep(uo.worldCamera, context);
        }
        protected override void GetDepsFromImpl(object obj, GetDepsFromContext context)
        {
            base.GetDepsFromImpl(obj, context);
            Skybox uo = (Skybox)obj;

            AddDep(uo.material, context);
        }
        protected override void GetDepsFromImpl(object obj, GetDepsFromContext context)
        {
            base.GetDepsFromImpl(obj, context);
            TerrainData uo = (TerrainData)obj;

            AddDep(uo.terrainLayers, context);
        }
        protected override void GetDepsFromImpl(object obj, GetDepsFromContext context)
        {
            base.GetDepsFromImpl(obj, context);
            Collider uo = (Collider)obj;

            AddDep(uo.sharedMaterial, context);
        }
        protected override void GetDepsFromImpl(object obj, GetDepsFromContext context)
        {
            base.GetDepsFromImpl(obj, context);
            SpriteRenderer uo = (SpriteRenderer)obj;

            AddDep(uo.sprite, context);
        }
コード例 #23
0
        protected override void GetDepsFromImpl(object obj, GetDepsFromContext context)
        {
            base.GetDepsFromImpl(obj, context);
            DetailPrototype uo = (DetailPrototype)obj;

            AddDep(uo.prototype, context);
            AddDep(uo.prototypeTexture, context);
        }
コード例 #24
0
        protected override void GetDepsFromImpl(object obj, GetDepsFromContext context)
        {
            base.GetDepsFromImpl(obj, context);
            Terrain uo = (Terrain)obj;

            AddDep(uo.terrainData, context);
            AddDep(uo.materialTemplate, context);
        }
コード例 #25
0
        protected override void GetDepsFromImpl(object obj, GetDepsFromContext context)
        {
            base.GetDepsFromImpl(obj, context);
            Light uo = (Light)obj;

            AddDep(uo.cookie, context);
            AddDep(uo.flare, context);
        }
コード例 #26
0
        protected override void GetDepsFromImpl(object obj, GetDepsFromContext context)
        {
            base.GetDepsFromImpl(obj, context);
            AudioSource uo = (AudioSource)obj;

            AddDep(uo.clip, context);
            AddDep(uo.outputAudioMixerGroup, context);
        }
        protected override void GetDepsFromImpl(object obj, GetDepsFromContext context)
        {
            base.GetDepsFromImpl(obj, context);
            Image uo = (Image)obj;

            AddDep(uo.sprite, context);
            AddDep(uo.overrideSprite, context);
        }
コード例 #28
0
        protected override void GetDepsFromImpl(object obj, GetDepsFromContext context)
        {
            base.GetDepsFromImpl(obj, context);
            ParticleSystemRenderer uo = (ParticleSystemRenderer)obj;

            AddDep(uo.mesh, context);
            AddDep(uo.trailMaterial, context);
        }
        protected override void GetDepsFromImpl(object obj, GetDepsFromContext context)
        {
            base.GetDepsFromImpl(obj, context);
            TestBehavior uo = (TestBehavior)obj;

            AddDep(uo.Values3, context);
            AddSurrogateDeps(uo.Event, v_ => (PersistentUnityEvent)v_, context);
        }
        protected override void GetDepsFromImpl(object obj, GetDepsFromContext context)
        {
            base.GetDepsFromImpl(obj, context);
            Renderer uo = (Renderer)obj;

            AddDep(uo.lightProbeProxyVolumeOverride, context);
            AddDep(uo.probeAnchor, context);
            AddDep(uo.sharedMaterials, context);
        }