MethodTweener
Configure a MethodTweener command within a Tween sequence.
Obtain MethodTweener through a valid Tween TweenMethod(); direct construction is invalid. The command is already appended to the parent. Configure before processing; fluent methods return the same wrapper rather than an independent copy.
Callback accepts one interpolated from→to value. Delay is separate from duration; override Transition/Ease for this command if needed. A numeric callback was tested with manual steps; visual smoothness was not assessed.
Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.
Constructors1
MethodTweenerConstructor
public MethodTweener();Do not call new MethodTweener(): its native constructor emits an error. Create through Tween.TweenMethod on a valid Tween; this is a sequence command rather than a standalone timer/animation.
Methods3
SetDelayMethodTweener
public MethodTweener SetDelay(double delay);Delays the first interpolated-method call; duration starts after the delay. Callback receives one current value rather than elapsed time or a frame index. No early call and easing after delay were tested. Configure before starting; negative/nonfinite durations were not accepted.
| Name | Type | Default |
|---|---|---|
delay | double | — |
delayNonnegative finite delay in Tween seconds.
MethodTweenerThe same command object for configuration, not an independent copy. From can yield null for an invalid state/type.
SetEaseMethodTweener
public MethodTweener SetEase(Tween.EaseType ease);Sets this command easing, overriding the parent default. Configure after factory creation and before processing. Changes neither duration nor neighboring commands.
| Name | Type | Default |
|---|---|---|
ease | Tween.EaseType | — |
easeValid EaseType for this command.
MethodTweenerThe same command object for configuration, not an independent copy. From can yield null for an invalid state/type.
SetTransMethodTweener
public MethodTweener SetTrans(Tween.TransitionType trans);Sets this command transition. Overrides captured parent defaults here without changing neighbors. Quad with Ease.In at half duration was tested.
| Name | Type | Default |
|---|---|---|
trans | Tween.TransitionType | — |
transValid TransitionType for this command.
MethodTweenerThe same command object for configuration, not an independent copy. From can yield null for an invalid state/type.