true to enable the behavior, false to disable it
Return true if the behavior is activated
Tween a color object effect property.
Only used by events can be set to null
Unique id to identify the tween
The target RGB color (format "128;200;255" with values between 0 and 255 for red, green and blue)
Effect name
Property name
Easing function identifier
Duration in seconds
Destroy this object when the tween ends
Tween a numeric object effect property.
Only used by events can be set to null
Unique id to identify the tween
The targeted value
Effect name
Property name
Easing function identifier
Duration in seconds
Destroy this object when the tween ends
Tween an object angle.
Unique id to identify the tween
The target angle
Easing function identifier
Duration in milliseconds
Destroy this object when the tween ends
Tween an object angle.
Unique id to identify the tween
The target angle
Easing function identifier
Duration in seconds
Destroy this object when the tween ends
Tween an object HSL color, with the "to" color given using HSL (H: any number, S and L: 0-100).
Unique id to identify the tween
The target hue, or the same as the from color's hue if blank
The target saturation, or the same as the from color's saturation if blank
The target lightness, or the same as the from color's lightness if blank
Easing function identifier
Duration in milliseconds
Destroy this object when the tween ends
Tween an object HSL color, with the "to" color given using HSL (H: any number, S and L: 0-100).
Unique id to identify the tween
The target hue, or the same as the from color's hue if blank
The target saturation, or the same as the from color's saturation if blank
The target lightness, or the same as the from color's lightness if blank
Easing function identifier
Duration in seconds
Destroy this object when the tween ends
Tween an object color.
Unique id to identify the tween
The target RGB color (format "128;200;255" with values between 0 and 255 for red, green and blue)
Easing function identifier
Duration in milliseconds
Destroy this object when the tween ends
Tween using HSL color mappings, rather than direct RGB line
Tween an object color.
Unique id to identify the tween
The target RGB color (format "128;200;255" with values between 0 and 255 for red, green and blue)
Easing function identifier
Duration in milliseconds
Destroy this object when the tween ends
Tween using HSL color mappings, rather than direct RGB line
Tween an object depth.
Unique id to identify the tween
The target depth
Easing function identifier
Duration in milliseconds
Destroy this object when the tween ends
Tween an object depth.
Only used by events can be set to null
Unique id to identify the tween
The target depth
Easing function identifier
Duration in seconds
Destroy this object when the tween ends
Tween an object height.
Unique id to identify the tween
The target height
Easing function identifier
Duration in milliseconds
Destroy this object when the tween ends
Tween an object height.
Unique id to identify the tween
The target height
Easing function identifier
Duration in seconds
Destroy this object when the tween ends
Tween an object opacity.
Unique id to identify the tween
The target opacity
Easing function identifier
Duration in milliseconds
Destroy this object when the tween ends
Tween an object opacity.
Unique id to identify the tween
The target opacity
Easing function identifier
Duration in second
Destroy this object when the tween ends
Tween an object position.
Unique id to identify the tween
The target X position
The target Y position
Easing function identifier
Duration in milliseconds
Destroy this object when the tween ends
Tween an object position.
Unique id to identify the tween
The target X position
The target Y position
Easing function identifier
Duration in seconds
Destroy this object when the tween ends
Tween an object X position.
Unique id to identify the tween
The target X position
Easing function identifier
Duration in milliseconds
Destroy this object when the tween ends
Tween an object X position.
Unique id to identify the tween
The target X position
Easing function identifier
Duration in seconds
Destroy this object when the tween ends
Tween an object Y position.
Unique id to identify the tween
The target Y position
Easing function identifier
Duration in milliseconds
Destroy this object when the tween ends
Tween an object Y position.
Unique id to identify the tween
The target Y position
Easing function identifier
Duration in seconds
Destroy this object when the tween ends
Tween an object Z position.
Unique id to identify the tween
The target Z position
Easing function identifier
Duration in milliseconds
Destroy this object when the tween ends
Tween an object Z position.
Only used by events can be set to null
Unique id to identify the tween
The target Z position
Easing function identifier
Duration in seconds
Destroy this object when the tween ends
Tween a 3D object rotation X.
Only used by events can be set to null
Unique id to identify the tween
The target angle
Easing function identifier
Duration in seconds
Destroy this object when the tween ends
Tween a 3D object rotation Y.
Only used by events can be set to null
Unique id to identify the tween
The target angle
Easing function identifier
Duration in seconds
Destroy this object when the tween ends
Tween an object scale.
Unique id to identify the tween
The target X-scale
The target Y-scale
Easing function identifier
Duration in milliseconds
Destroy this object when the tween ends
Scale the transform from the center of the object (or point that is called center), not the top-left origin
Tween an object scale.
Unique id to identify the tween
The target X-scale
The target Y-scale
Easing function identifier
Duration in milliseconds
Destroy this object when the tween ends
Scale the transform from the center of the object (or point that is called center), not the top-left origin
Tween an object scale.
Unique id to identify the tween
The target scale
Easing function identifier
Duration in seconds
Destroy this object when the tween ends
Scale the transform from the center of the object (or point that is called center), not the top-left origin
Tween an object X-scale.
Unique id to identify the tween
The target X-scale
Easing function identifier
Duration in milliseconds
Destroy this object when the tween ends
Scale the transform from the center of the object (or point that is called center), not the top-left origin
Tween an object X-scale.
Unique id to identify the tween
The target X-scale
Easing function identifier
Duration in seconds
Destroy this object when the tween ends
Scale the transform from the center of the object (or point that is called center), not the top-left origin
Tween an object Y-scale.
Unique id to identify the tween
The target Y-scale
Easing function identifier
Duration in milliseconds
Destroy this object when the tween ends
Scale the transform from the center of the object (or point that is called center), not the top-left origin
Tween an object Y-scale.
Unique id to identify the tween
The target Y-scale
Easing function identifier
Duration in seconds
Destroy this object when the tween ends
Scale the transform from the center of the object (or point that is called center), not the top-left origin
Tween an object width.
Unique id to identify the tween
The target width
Easing function identifier
Duration in milliseconds
Destroy this object when the tween ends
Tween an object width.
Unique id to identify the tween
The target width
Easing function identifier
Duration in seconds
Destroy this object when the tween ends
Tween a text object character size.
Unique id to identify the tween
The target character size
Easing function identifier
Duration in milliseconds
Destroy this object when the tween ends
Tween a text object character size.
Unique id to identify the tween
The target character size
Easing function identifier
Duration in seconds
Destroy this object when the tween ends
Add an object value tween.
Unique id to identify the tween
Start value
End value
Easing function identifier
Duration in seconds
Set it to true to use a exponential It's useful for values that are factors like a scale or a zoom.
Destroy this object when the tween ends
Add an object variable tween.
Unique id to identify the tween
The object variable to store the tweened value
Start value
End value
Easing function identifier
Duration in milliseconds
Destroy this object when the tween ends
Tween an object variable.
Unique id to identify the tween
The object variable to store the tweened value
End value
Easing function identifier
Duration in milliseconds
Destroy this object when the tween ends
Tween an object variable.
Unique id to identify the tween
The object variable to store the tweened value
End value
Easing function identifier
Duration in seconds
Destroy this object when the tween ends
This method is called each tick after events are done.
The instanceContainer owning the object
This method is called each tick before events are done.
Tween exists.
Unique id to identify the tween
The tween exists
Get the name of the behavior.
The behavior's name.
Get the name identifier of the behavior.
The behavior's name identifier.
Get tween progress.
Unique id to identify the tween
Progress of playing tween animation (between 0.0 and 1.0)
Get tween value.
It returns 0 for tweens with several values.
Unique id to identify the tween
Value of playing tween animation
Tween has finished.
Unique id to identify the tween
Tween is playing.
Unique id to identify the tween
Reimplement this method to do extra work when the behavior is activated (after
it has been deactivated, see onDeActivate
).
Reimplement this to do extra work when the behavior is created (i.e: an
object using it was created), after the object is fully initialized (so
you can use this.owner
without risk).
Reimplement this method to do extra work when the behavior is deactivated.
This method is called when the owner of the behavior
is being removed from the scene and is about to be destroyed/reused later
or when the behavior is removed from an object (can happen in case of
hot-reloading only. Otherwise, behaviors are just de-activated,
not removed. See onDeActivate
).
This method is called when the owner of the behavior was hot reloaded, so its position, angle, size can have been changed outside of events.
Pause a tween.
Unique id to identify the tween
Remove a tween.
Unique id to identify the tween
Resume a tween.
Unique id to identify the tween
Called at each frame after events. Call doStepPostEvents.
Behaviors writers: Please do not redefine this method. Redefine doStepPreEvents instead.
The instanceContainer owning the object
Called at each frame before events. Call doStepPreEvents.
Behaviors writers: Please do not redefine this method. Redefine doStepPreEvents instead.
The instanceContainer owning the object
Stop a tween.
Unique id to identify the tween
Move to destination
Called when the behavior must be updated using the specified behaviorData. This is the case during hot-reload, and is only called if the behavior was modified.
true if the behavior was updated, false if it could not (i.e: hot-reload is not supported).
Update the behavior properties using the provided data.
The new properties of the behavior.
Should return false
if the behavior does not need any lifecycle function to
be called.
Default, hidden, "capability" behaviors set it to false
.
This avoids useless calls to empty lifecycle functions, which would waste CPU
time (and have a sizeable impact for example when lots of static instances
are living in the scene).
The instance container the behavior belongs to.
The data to initialize the behavior
The runtime object the behavior belongs to.
Generated using TypeDoc
De/Activate the behavior