LeXXik
2
Everyone, please note the breaking change in Tween library.
Previously:
entity
.tween(entity.getLocalPosition())
.to({x: 10, y: 0, z: 0}, 1, pc.Linear)
.on('complete', function () {
console.log('tween completed');
})
.start();
Starting from 1.66:
entity
.tween(entity.getLocalPosition())
.to({x: 10, y: 0, z: 0}, 1, pc.Linear)
.onComplete(() => {
console.log('tween completed');
})
.start();
Same for update
and loop
events.
You would need to update the Tween library to the latest (thank you, @kungfooman ). You can grab one here:
Further details in PR:
6 Likes