Trying to update a custom property and trying to keep track on every iteration update
(on every tick)
but it property become undefine on 2nd update iteration not sure why
Trying to update a custom property and trying to keep track on every iteration update
(on every tick)
but it property become undefine on 2nd update iteration not sure why
By example:
cc.tween().to(1, {
scale: 2,
position: {
value: cc.v3(),
progress: (start, end, current, t) => {
// Note that the passed in property is cc.Vec3, so you need to use Vec3.lerp for interpolation calculations
return start.lerp(end, t, current);
}
}
})
https://docs.cocos.com/creator/2.1/manual/en/scripting/tween.html
You are missing return current value
What I seeking is a behaviour line onUpdate as in 3.5v of Tween
I ma working on 2.4v which do not have this function so is it possible to register a function which is call on every updation iteration an can access the value and that time and update certain things