protected override void ReadFromImpl(object obj)
 {
     base.ReadFromImpl(obj);
     ParticleSystem.CollisionModule uo = (ParticleSystem.CollisionModule)obj;
     enabled                = uo.enabled;
     type                   = uo.type;
     mode                   = uo.mode;
     dampen                 = uo.dampen;
     dampenMultiplier       = uo.dampenMultiplier;
     bounce                 = uo.bounce;
     bounceMultiplier       = uo.bounceMultiplier;
     lifetimeLoss           = uo.lifetimeLoss;
     lifetimeLossMultiplier = uo.lifetimeLossMultiplier;
     minKillSpeed           = uo.minKillSpeed;
     maxKillSpeed           = uo.maxKillSpeed;
     collidesWith           = uo.collidesWith;
     enableDynamicColliders = uo.enableDynamicColliders;
     maxCollisionShapes     = uo.maxCollisionShapes;
     quality                = uo.quality;
     voxelSize              = uo.voxelSize;
     radiusScale            = uo.radiusScale;
     sendCollisionMessages  = uo.sendCollisionMessages;
     colliderForce          = uo.colliderForce;
     multiplyColliderForceByCollisionAngle = uo.multiplyColliderForceByCollisionAngle;
     multiplyColliderForceByParticleSpeed  = uo.multiplyColliderForceByParticleSpeed;
     multiplyColliderForceByParticleSize   = uo.multiplyColliderForceByParticleSize;
 }
 protected override void ReadFromImpl(object obj)
 {
     base.ReadFromImpl(obj);
     ParticleSystem.TrailModule uo = (ParticleSystem.TrailModule)obj;
     enabled                  = uo.enabled;
     mode                     = uo.mode;
     ratio                    = uo.ratio;
     lifetime                 = uo.lifetime;
     lifetimeMultiplier       = uo.lifetimeMultiplier;
     minVertexDistance        = uo.minVertexDistance;
     textureMode              = uo.textureMode;
     worldSpace               = uo.worldSpace;
     dieWithParticles         = uo.dieWithParticles;
     sizeAffectsWidth         = uo.sizeAffectsWidth;
     sizeAffectsLifetime      = uo.sizeAffectsLifetime;
     inheritParticleColor     = uo.inheritParticleColor;
     colorOverLifetime        = uo.colorOverLifetime;
     widthOverTrail           = uo.widthOverTrail;
     widthOverTrailMultiplier = uo.widthOverTrailMultiplier;
     colorOverTrail           = uo.colorOverTrail;
     generateLightingData     = uo.generateLightingData;
     ribbonCount              = uo.ribbonCount;
     shadowBias               = uo.shadowBias;
     splitSubEmitterRibbons   = uo.splitSubEmitterRibbons;
     attachRibbonsToTransform = uo.attachRibbonsToTransform;
 }
 protected override void ReadFromImpl(object obj)
 {
     base.ReadFromImpl(obj);
     ParticleSystem.VelocityOverLifetimeModule uo = (ParticleSystem.VelocityOverLifetimeModule)obj;
     enabled                  = uo.enabled;
     x                        = uo.x;
     y                        = uo.y;
     z                        = uo.z;
     xMultiplier              = uo.xMultiplier;
     yMultiplier              = uo.yMultiplier;
     zMultiplier              = uo.zMultiplier;
     orbitalX                 = uo.orbitalX;
     orbitalY                 = uo.orbitalY;
     orbitalZ                 = uo.orbitalZ;
     orbitalXMultiplier       = uo.orbitalXMultiplier;
     orbitalYMultiplier       = uo.orbitalYMultiplier;
     orbitalZMultiplier       = uo.orbitalZMultiplier;
     orbitalOffsetX           = uo.orbitalOffsetX;
     orbitalOffsetY           = uo.orbitalOffsetY;
     orbitalOffsetZ           = uo.orbitalOffsetZ;
     orbitalOffsetXMultiplier = uo.orbitalOffsetXMultiplier;
     orbitalOffsetYMultiplier = uo.orbitalOffsetYMultiplier;
     orbitalOffsetZMultiplier = uo.orbitalOffsetZMultiplier;
     radial                   = uo.radial;
     radialMultiplier         = uo.radialMultiplier;
     speedModifier            = uo.speedModifier;
     speedModifierMultiplier  = uo.speedModifierMultiplier;
     space                    = uo.space;
 }
 protected override void ReadFromImpl(object obj)
 {
     base.ReadFromImpl(obj);
     ParticleSystem.NoiseModule uo = (ParticleSystem.NoiseModule)obj;
     enabled               = uo.enabled;
     separateAxes          = uo.separateAxes;
     strength              = uo.strength;
     strengthMultiplier    = uo.strengthMultiplier;
     strengthX             = uo.strengthX;
     strengthXMultiplier   = uo.strengthXMultiplier;
     strengthY             = uo.strengthY;
     strengthYMultiplier   = uo.strengthYMultiplier;
     strengthZ             = uo.strengthZ;
     strengthZMultiplier   = uo.strengthZMultiplier;
     frequency             = uo.frequency;
     damping               = uo.damping;
     octaveCount           = uo.octaveCount;
     octaveMultiplier      = uo.octaveMultiplier;
     octaveScale           = uo.octaveScale;
     quality               = uo.quality;
     scrollSpeed           = uo.scrollSpeed;
     scrollSpeedMultiplier = uo.scrollSpeedMultiplier;
     remapEnabled          = uo.remapEnabled;
     remap            = uo.remap;
     remapMultiplier  = uo.remapMultiplier;
     remapX           = uo.remapX;
     remapXMultiplier = uo.remapXMultiplier;
     remapY           = uo.remapY;
     remapYMultiplier = uo.remapYMultiplier;
     remapZ           = uo.remapZ;
     remapZMultiplier = uo.remapZMultiplier;
     positionAmount   = uo.positionAmount;
     rotationAmount   = uo.rotationAmount;
     sizeAmount       = uo.sizeAmount;
 }
예제 #5
0
 protected override void ReadFromImpl(object obj)
 {
     base.ReadFromImpl(obj);
     ParticleSystem.InheritVelocityModule uo = (ParticleSystem.InheritVelocityModule)obj;
     enabled         = uo.enabled;
     mode            = uo.mode;
     curve           = uo.curve;
     curveMultiplier = uo.curveMultiplier;
 }
 protected override void ReadFromImpl(object obj)
 {
     base.ReadFromImpl(obj);
     ParticleSystem.EmissionModule uo = (ParticleSystem.EmissionModule)obj;
     enabled                    = uo.enabled;
     rateOverTime               = uo.rateOverTime;
     rateOverTimeMultiplier     = uo.rateOverTimeMultiplier;
     rateOverDistance           = uo.rateOverDistance;
     rateOverDistanceMultiplier = uo.rateOverDistanceMultiplier;
     burstCount                 = uo.burstCount;
 }
 protected override void ReadFromImpl(object obj)
 {
     base.ReadFromImpl(obj);
     ParticleSystem.Burst uo = (ParticleSystem.Burst)obj;
     time           = uo.time;
     count          = uo.count;
     minCount       = uo.minCount;
     maxCount       = uo.maxCount;
     cycleCount     = uo.cycleCount;
     repeatInterval = uo.repeatInterval;
     probability    = uo.probability;
 }
 protected override void ReadFromImpl(object obj)
 {
     base.ReadFromImpl(obj);
     ParticleSystem.RotationOverLifetimeModule uo = (ParticleSystem.RotationOverLifetimeModule)obj;
     enabled      = uo.enabled;
     x            = uo.x;
     xMultiplier  = uo.xMultiplier;
     y            = uo.y;
     yMultiplier  = uo.yMultiplier;
     z            = uo.z;
     zMultiplier  = uo.zMultiplier;
     separateAxes = uo.separateAxes;
 }
 protected override void ReadFromImpl(object obj)
 {
     base.ReadFromImpl(obj);
     ParticleSystem.ShapeModule uo = (ParticleSystem.ShapeModule)obj;
     enabled                  = uo.enabled;
     shapeType                = uo.shapeType;
     randomDirectionAmount    = uo.randomDirectionAmount;
     sphericalDirectionAmount = uo.sphericalDirectionAmount;
     randomPositionAmount     = uo.randomPositionAmount;
     alignToDirection         = uo.alignToDirection;
     radius                = uo.radius;
     radiusMode            = uo.radiusMode;
     radiusSpread          = uo.radiusSpread;
     radiusSpeed           = uo.radiusSpeed;
     radiusSpeedMultiplier = uo.radiusSpeedMultiplier;
     radiusThickness       = uo.radiusThickness;
     angle                = uo.angle;
     length               = uo.length;
     boxThickness         = uo.boxThickness;
     meshShapeType        = uo.meshShapeType;
     mesh                 = ToID(uo.mesh);
     meshRenderer         = ToID(uo.meshRenderer);
     skinnedMeshRenderer  = ToID(uo.skinnedMeshRenderer);
     sprite               = ToID(uo.sprite);
     spriteRenderer       = ToID(uo.spriteRenderer);
     useMeshMaterialIndex = uo.useMeshMaterialIndex;
     meshMaterialIndex    = uo.meshMaterialIndex;
     useMeshColors        = uo.useMeshColors;
     normalOffset         = uo.normalOffset;
     arc                          = uo.arc;
     arcMode                      = uo.arcMode;
     arcSpread                    = uo.arcSpread;
     arcSpeed                     = uo.arcSpeed;
     arcSpeedMultiplier           = uo.arcSpeedMultiplier;
     donutRadius                  = uo.donutRadius;
     position                     = uo.position;
     rotation                     = uo.rotation;
     scale                        = uo.scale;
     texture                      = ToID(uo.texture);
     textureClipChannel           = uo.textureClipChannel;
     textureClipThreshold         = uo.textureClipThreshold;
     textureColorAffectsParticles = uo.textureColorAffectsParticles;
     textureAlphaAffectsParticles = uo.textureAlphaAffectsParticles;
     textureBilinearFiltering     = uo.textureBilinearFiltering;
     textureUVChannel             = uo.textureUVChannel;
     meshSpawnMode                = uo.meshSpawnMode;
     meshSpawnSpread              = uo.meshSpawnSpread;
     meshSpawnSpeed               = uo.meshSpawnSpeed;
     meshSpawnSpeedMultiplier     = uo.meshSpawnSpeedMultiplier;
 }
 protected override void ReadFromImpl(object obj)
 {
     base.ReadFromImpl(obj);
     ParticleSystem.ForceOverLifetimeModule uo = (ParticleSystem.ForceOverLifetimeModule)obj;
     enabled     = uo.enabled;
     x           = uo.x;
     y           = uo.y;
     z           = uo.z;
     xMultiplier = uo.xMultiplier;
     yMultiplier = uo.yMultiplier;
     zMultiplier = uo.zMultiplier;
     space       = uo.space;
     randomized  = uo.randomized;
 }
 protected override void ReadFromImpl(object obj)
 {
     base.ReadFromImpl(obj);
     ParticleSystem.MainModule uo = (ParticleSystem.MainModule)obj;
     duration                  = uo.duration;
     loop                      = uo.loop;
     prewarm                   = uo.prewarm;
     startDelay                = uo.startDelay;
     startDelayMultiplier      = uo.startDelayMultiplier;
     startLifetime             = uo.startLifetime;
     startLifetimeMultiplier   = uo.startLifetimeMultiplier;
     startSpeed                = uo.startSpeed;
     startSpeedMultiplier      = uo.startSpeedMultiplier;
     startSize3D               = uo.startSize3D;
     startSize                 = uo.startSize;
     startSizeMultiplier       = uo.startSizeMultiplier;
     startSizeX                = uo.startSizeX;
     startSizeXMultiplier      = uo.startSizeXMultiplier;
     startSizeY                = uo.startSizeY;
     startSizeYMultiplier      = uo.startSizeYMultiplier;
     startSizeZ                = uo.startSizeZ;
     startSizeZMultiplier      = uo.startSizeZMultiplier;
     startRotation3D           = uo.startRotation3D;
     startRotation             = uo.startRotation;
     startRotationMultiplier   = uo.startRotationMultiplier;
     startRotationX            = uo.startRotationX;
     startRotationXMultiplier  = uo.startRotationXMultiplier;
     startRotationY            = uo.startRotationY;
     startRotationYMultiplier  = uo.startRotationYMultiplier;
     startRotationZ            = uo.startRotationZ;
     startRotationZMultiplier  = uo.startRotationZMultiplier;
     flipRotation              = uo.flipRotation;
     startColor                = uo.startColor;
     gravityModifier           = uo.gravityModifier;
     gravityModifierMultiplier = uo.gravityModifierMultiplier;
     simulationSpace           = uo.simulationSpace;
     customSimulationSpace     = ToID(uo.customSimulationSpace);
     simulationSpeed           = uo.simulationSpeed;
     useUnscaledTime           = uo.useUnscaledTime;
     scalingMode               = uo.scalingMode;
     playOnAwake               = uo.playOnAwake;
     maxParticles              = uo.maxParticles;
     emitterVelocityMode       = uo.emitterVelocityMode;
     stopAction                = uo.stopAction;
     cullingMode               = uo.cullingMode;
     ringBufferMode            = uo.ringBufferMode;
     ringBufferLoopRange       = uo.ringBufferLoopRange;
 }
예제 #12
0
 protected override void ReadFromImpl(object obj)
 {
     base.ReadFromImpl(obj);
     ParticleSystem.SizeBySpeedModule uo = (ParticleSystem.SizeBySpeedModule)obj;
     enabled        = uo.enabled;
     size           = uo.size;
     sizeMultiplier = uo.sizeMultiplier;
     x            = uo.x;
     xMultiplier  = uo.xMultiplier;
     y            = uo.y;
     yMultiplier  = uo.yMultiplier;
     z            = uo.z;
     zMultiplier  = uo.zMultiplier;
     separateAxes = uo.separateAxes;
     range        = uo.range;
 }
 protected override void ReadFromImpl(object obj)
 {
     base.ReadFromImpl(obj);
     ParticleSystem.LightsModule uo = (ParticleSystem.LightsModule)obj;
     enabled = uo.enabled;
     ratio   = uo.ratio;
     useRandomDistribution = uo.useRandomDistribution;
     light                 = ToID(uo.light);
     useParticleColor      = uo.useParticleColor;
     sizeAffectsRange      = uo.sizeAffectsRange;
     alphaAffectsIntensity = uo.alphaAffectsIntensity;
     range                 = uo.range;
     rangeMultiplier       = uo.rangeMultiplier;
     intensity             = uo.intensity;
     intensityMultiplier   = uo.intensityMultiplier;
     maxLights             = uo.maxLights;
 }
        public override void ReadFrom(object obj)
        {
            base.ReadFrom(obj);
            if (obj == null)
            {
                return;
            }

            ParticleSystem.CustomDataModule o = (ParticleSystem.CustomDataModule)obj;
            m_mode1 = o.GetMode(ParticleSystemCustomData.Custom1);
            m_mode2 = o.GetMode(ParticleSystemCustomData.Custom2);


            m_color1 = new PersistentParticleSystemNestedMinMaxGradient <TID>();
            m_color1.ReadFrom(o.GetColor(ParticleSystemCustomData.Custom1));

            m_color2 = new PersistentParticleSystemNestedMinMaxGradient <TID>();
            m_color2.ReadFrom(o.GetColor(ParticleSystemCustomData.Custom2));

            m_vectorComponentCount1 = o.GetVectorComponentCount(ParticleSystemCustomData.Custom1);
            m_vectorComponentCount2 = o.GetVectorComponentCount(ParticleSystemCustomData.Custom2);

            if (m_vectorComponentCount1 > 0)
            {
                m_vectors1 = new PersistentParticleSystemNestedMinMaxCurve <TID> [m_vectorComponentCount1];
                for (int i = 0; i < m_vectors1.Length; ++i)
                {
                    PersistentParticleSystemNestedMinMaxCurve <TID> v = new PersistentParticleSystemNestedMinMaxCurve <TID>();
                    v.ReadFrom(o.GetVector(ParticleSystemCustomData.Custom1, i));
                    m_vectors1[i] = v;
                }
            }

            if (m_vectorComponentCount2 > 0)
            {
                m_vectors2 = new PersistentParticleSystemNestedMinMaxCurve <TID> [m_vectorComponentCount2];
                for (int i = 0; i < m_vectors2.Length; ++i)
                {
                    PersistentParticleSystemNestedMinMaxCurve <TID> v = new PersistentParticleSystemNestedMinMaxCurve <TID>();
                    v.ReadFrom(o.GetVector(ParticleSystemCustomData.Custom2, i));
                    m_vectors2[i] = v;
                }
            }
        }
 protected override void ReadFromImpl(object obj)
 {
     base.ReadFromImpl(obj);
     ParticleSystem.TextureSheetAnimationModule uo = (ParticleSystem.TextureSheetAnimationModule)obj;
     enabled                 = uo.enabled;
     mode                    = uo.mode;
     numTilesX               = uo.numTilesX;
     numTilesY               = uo.numTilesY;
     animation               = uo.animation;
     frameOverTime           = uo.frameOverTime;
     frameOverTimeMultiplier = uo.frameOverTimeMultiplier;
     startFrame              = uo.startFrame;
     startFrameMultiplier    = uo.startFrameMultiplier;
     cycleCount              = uo.cycleCount;
     rowIndex                = uo.rowIndex;
     uvChannelMask           = uo.uvChannelMask;
     timeMode                = uo.timeMode;
     fps        = uo.fps;
     speedRange = uo.speedRange;
     rowMode    = uo.rowMode;
 }
예제 #16
0
 protected override void ReadFromImpl(object obj)
 {
     base.ReadFromImpl(obj);
     ParticleSystem.LimitVelocityOverLifetimeModule uo = (ParticleSystem.LimitVelocityOverLifetimeModule)obj;
     enabled                        = uo.enabled;
     limitX                         = uo.limitX;
     limitXMultiplier               = uo.limitXMultiplier;
     limitY                         = uo.limitY;
     limitYMultiplier               = uo.limitYMultiplier;
     limitZ                         = uo.limitZ;
     limitZMultiplier               = uo.limitZMultiplier;
     limit                          = uo.limit;
     limitMultiplier                = uo.limitMultiplier;
     dampen                         = uo.dampen;
     separateAxes                   = uo.separateAxes;
     space                          = uo.space;
     drag                           = uo.drag;
     dragMultiplier                 = uo.dragMultiplier;
     multiplyDragByParticleSize     = uo.multiplyDragByParticleSize;
     multiplyDragByParticleVelocity = uo.multiplyDragByParticleVelocity;
 }
예제 #17
0
        protected override void ReadFromImpl(object obj)
        {
            base.ReadFromImpl(obj);
            ParticleSystemForceField uo = (ParticleSystemForceField)obj;

            shape                          = uo.shape;
            startRange                     = uo.startRange;
            endRange                       = uo.endRange;
            length                         = uo.length;
            gravityFocus                   = uo.gravityFocus;
            rotationRandomness             = uo.rotationRandomness;
            multiplyDragByParticleSize     = uo.multiplyDragByParticleSize;
            multiplyDragByParticleVelocity = uo.multiplyDragByParticleVelocity;
            vectorField                    = ToID(uo.vectorField);
            directionX                     = uo.directionX;
            directionY                     = uo.directionY;
            directionZ                     = uo.directionZ;
            gravity                        = uo.gravity;
            rotationSpeed                  = uo.rotationSpeed;
            rotationAttraction             = uo.rotationAttraction;
            drag                  = uo.drag;
            vectorFieldSpeed      = uo.vectorFieldSpeed;
            vectorFieldAttraction = uo.vectorFieldAttraction;
        }