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); }
public override void Sanitize(int version) { if (version < 4) { SanitizeHelper.MigrateVector3OutputToSpaceableKeepingLegacyBehavior(this, "Position"); } base.Sanitize(version); }
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); }
public sealed override void Sanitize() { base.Sanitize(); SanitizeHelper.ToOperatorWithoutFloatN(this, typeof(Branch)); }
public sealed override void Sanitize() { base.Sanitize(); SanitizeHelper.ToOperatorWithoutFloatN(this, typeof(RemapToNegOnePosOne)); }
public sealed override void Sanitize() { base.Sanitize(); SanitizeHelper.ToOperatorWithoutFloatN(this, typeof(TriangleWave)); }
public override sealed void Sanitize() { base.Sanitize(); SanitizeHelper.ToOperatorWithoutFloatN(this, typeof(Ceiling)); }
public sealed override void Sanitize() { base.Sanitize(); SanitizeHelper.ToOperatorWithoutFloatN(this, typeof(SquaredDistance)); }