예제 #1
0
        public override void Sanitize(int version)
        {
            var newVolume = ScriptableObject.CreateInstance <Operator.ConeVolume>();

            SanitizeHelper.MigrateTConeFromCone(newVolume.inputSlots[0], inputSlots[0]);
            VFXSlot.CopyLinksAndValue(newVolume.outputSlots[0], outputSlots[0], true);
            ReplaceModel(newVolume, this);
        }
예제 #2
0
 public override void Sanitize(int version)
 {
     if (version < 4)
     {
         SanitizeHelper.MigrateVector3OutputToSpaceableKeepingLegacyBehavior(this, "Position");
     }
     base.Sanitize(version);
 }
예제 #3
0
        public override void Sanitize(int version)
        {
            var newArea = ScriptableObject.CreateInstance <Operator.CircleArea>();

            SanitizeHelper.MigrateTCircleFromCircle(newArea.inputSlots[0], inputSlots[0]);
            VFXSlot.CopyLinksAndValue(newArea.outputSlots[0], outputSlots[0], true);
            ReplaceModel(newArea, this);
        }
예제 #4
0
 public sealed override void Sanitize()
 {
     base.Sanitize();
     SanitizeHelper.ToOperatorWithoutFloatN(this, typeof(Branch));
 }
예제 #5
0
 public sealed override void Sanitize()
 {
     base.Sanitize();
     SanitizeHelper.ToOperatorWithoutFloatN(this, typeof(RemapToNegOnePosOne));
 }
예제 #6
0
 public sealed override void Sanitize()
 {
     base.Sanitize();
     SanitizeHelper.ToOperatorWithoutFloatN(this, typeof(TriangleWave));
 }
예제 #7
0
 public override sealed void Sanitize()
 {
     base.Sanitize();
     SanitizeHelper.ToOperatorWithoutFloatN(this, typeof(Ceiling));
 }
 public sealed override void Sanitize()
 {
     base.Sanitize();
     SanitizeHelper.ToOperatorWithoutFloatN(this, typeof(SquaredDistance));
 }