Class AnimationUtility.WaveBase
- Namespace
- TMPEffects.TMPAnimations
- Assembly
- TMPEffects.dll
Base class for AnimationUtility.Wave.
Allows you to easily create periodic animations.
You should take a look at the online documentation for this one:
https://tmpeffects.luca3317.dev/docs/tmpanimator_animationutility_wave.html
[Serializable]
public abstract class AnimationUtility.WaveBase : ISerializationCallbackReceiver
- Inheritance
-
AnimationUtility.WaveBase
- Implements
-
ISerializationCallbackReceiver
- Derived
- Inherited Members
Constructors
WaveBase()
public WaveBase()
WaveBase(float, float, float, float)
public WaveBase(float upPeriod, float downPeriod, float velocity, float amplitude)
Parameters
Fields
wavelength
[NonSerialized]
public float wavelength
Field Value
Properties
Amplitude
The amplitude of the wave.
public float Amplitude { get; set; }
Property Value
DownPeriod
The down period of the wave; how long it takes to travel down the wave.
Ignores the Velocity of the wave, if you want to know it'll actually
take to travel down the wave, use EffectiveDownPeriod.
public float DownPeriod { get; set; }
Property Value
EffectiveDownPeriod
The amount of time it takes to travel down the wave.
public float EffectiveDownPeriod { get; }
Property Value
EffectivePeriod
The amount of time it takes to travel the wave.
Sum of EffectiveUpPeriod and EffectiveDownPeriod.
public float EffectivePeriod { get; }
Property Value
EffectiveUpPeriod
The amount of time it takes to travel up the wave.
public float EffectiveUpPeriod { get; }
Property Value
Frequency
The frequency of the wave.
public float Frequency { get; }
Property Value
Period
The period of the wave; how long it takes to travel up and down the wave.
Sum of UpPeriod and DownPeriod.
Ignores the Velocity of the wave, if you want to know it'll actually
take to travel the wave, use EffectivePeriod.
public float Period { get; }
Property Value
UpPeriod
The up period of the wave; how long it takes to travel up the wave.
Ignores the Velocity of the wave, if you want to know it'll actually
take to travel up the wave, use EffectiveUpPeriod.
public float UpPeriod { get; set; }
Property Value
Velocity
The velocity at which the wave travels.
public float Velocity { get; set; }
Property Value
WaveLength
The wavelength of the wave.
public float WaveLength { get; }
Property Value
Methods
OnAfterDeserialize()
Implement this method to receive a callback after Unity deserializes your object.
public virtual void OnAfterDeserialize()
OnBeforeSerialize()
Implement this method to receive a callback before Unity serializes your object.
public virtual void OnBeforeSerialize()