Class EchoOptions
- Namespace
- FriedSynapse.FlowEnt
Provides options for echo.
public class EchoOptions : AbstractAnimationOptions
- Inheritance
-
EchoOptions
- Inherited Members
- Extension Methods
Constructors
EchoOptions()
Initialises a new instance of the EchoOptions class.
public EchoOptions()
Fields
DefaultTime
public const float DefaultTime = 1
Field Value
Properties
StopCondition
The condition that when true, it will stop the echo.
public Func<float, bool> StopCondition { get; set; }
Property Value
Timeout
The amount of time in seconds that this echo will last.
public float? Timeout { get; set; }
Property Value
Methods
SetAutoStart(bool)
Sets whether this animation should auto-start or not.
public EchoOptions SetAutoStart(bool autoStart)
Parameters
autoStart
bool
Returns
Remarks
Auto-start will be slower than a true-start. See more at https://flowent.friedsynapse.com/tips#h.s5cucrg5qyjc
SetDelay(float)
Sets the amount of time in seconds that you want to delay when this animation is started.
public EchoOptions SetDelay(float time)
Parameters
time
float
Returns
SetDelayUntil(Func<bool>)
Sets the callback that holds the starting of the animation.
public EchoOptions SetDelayUntil(Func<bool> callback)
Parameters
Returns
SetLoopCount(int?)
Sets the amount of loops you want this animation to have. If you want infinite loops pass a null value.
public EchoOptions SetLoopCount(int? loopCount)
Parameters
loopCount
int?
Returns
Remarks
Flows only have reset loop types.
SetName(string)
Sets the name of the animation.
public EchoOptions SetName(string name)
Parameters
name
string
Returns
SetSkipFrames(int)
Sets the amount of frames you want to skip at when this animation is started.
public EchoOptions SetSkipFrames(int frames)
Parameters
frames
int
Returns
SetStopCondition(Func<float, bool>)
Sets the condition that when true, it will stop the echo.
public EchoOptions SetStopCondition(Func<float, bool> stopCondition)
Parameters
Returns
SetTimeScale(float)
Sets the time scale for the current animation.
public EchoOptions SetTimeScale(float timeScale)
Parameters
timeScale
float
Returns
SetTimeout(float?)
Sets the amount of time in seconds that this echo will last.
public EchoOptions SetTimeout(float? timeout)
Parameters
timeout
float?
Returns
SetUpdateType(UpdateType)
Sets the update type for the animation.
public EchoOptions SetUpdateType(UpdateType updateType)
Parameters
updateType
UpdateType