Skip to main content

Z

Description:

  Creates a definition for an action that animates the z-position of a Node.

Signature:

Z: function(
duration: number,
from: number,
to: number,
easing?: Ease.EaseFunc --[[Ease.Linear]]
): ActionDef

Parameters:

ParameterTypeDescription
durationnumberThe duration of the animation in seconds.
fromnumberThe starting z-position of the Node.
tonumberThe ending z-position of the Node.
easingEaseFunc[optional] The easing function to use for the animation. Defaults to Ease.Linear if not specified.

Returns:

Return TypeDescription
ActionDefAn ActionDef object that can be used to run the animation on a Node.