public void Save(TrailEffect effect)
 {
     active                         = effect.active;
     ignoreFrames                   = effect.ignoreFrames;
     duration                       = effect.duration;
     continuous                     = effect.continuous;
     smooth                         = effect.smooth;
     checkWorldPosition             = effect.checkWorldPosition;
     minDistance                    = effect.minDistance;
     worldPositionRelativeOption    = effect.worldPositionRelativeOption;
     worldPositionRelativeTransform = effect.worldPositionRelativeTransform;
     checkScreenPosition            = effect.checkScreenPosition;
     minPixelDistance               = effect.minPixelDistance;
     maxStepsPerFrame               = effect.maxStepsPerFrame;
     checkTime                      = effect.checkTime;
     timeInterval                   = effect.timeInterval;
     checkCollisions                = effect.checkCollisions;
     orientToSurface                = effect.orientToSurface;
     ground                         = effect.ground;
     surfaceOffset                  = effect.surfaceOffset;
     collisionLayerMask             = effect.collisionLayerMask;
     drawBehind                     = effect.drawBehind;
     cullMode                       = effect.cullMode;
     subMeshMask                    = effect.subMeshMask;
     colorOverTime                  = effect.colorOverTime;
     color                  = effect.color;
     colorSequence          = effect.colorSequence;
     colorCycleDuration     = effect.colorCycleDuration;
     colorStartPalette      = effect.colorStartPalette;
     pingPongSpeed          = effect.pingPongSpeed;
     this.effect            = effect.effect;
     texture                = effect.texture;
     scale                  = effect.scale;
     scaleStartRandomMin    = effect.scaleStartRandomMin;
     scaleStartRandomMax    = effect.scaleStartRandomMax;
     scaleOverTime          = effect.scaleOverTime;
     scaleUniform           = effect.scaleUniform;
     localPositionRandomMin = effect.localPositionRandomMin;
     localPositionRandomMax = effect.localPositionRandomMax;
     laserBandWidth         = effect.laserBandWidth;
     laserIntensity         = effect.laserIntensity;
     laserFlash             = effect.laserFlash;
     lookTarget             = effect.lookTarget;
     lookToCamera           = effect.lookToCamera;
     textureCutOff          = effect.textureCutOff;
     normalThreshold        = effect.normalThreshold;
     useLastAnimationState  = effect.useLastAnimationState;
     maxBatches             = effect.maxBatches;
     meshPoolSize           = effect.meshPoolSize;
     animationStates        = effect.animationStates;
 }
Example #2
0
 public static bool supportsColor(this TrailStyle s)
 {
     return(s != TrailStyle.SpaceDistortion);
 }