Despite the 11-year gap between Toy Story 2 and Toy Story 3, the villain from the franchise's second film very nearly foretold the ending of the second Toy Story sequel from 2010. All the Toy Story movies aren't particularly known for weaving a complex narrative web, but 1999's Toy Story 2 quietly ties into a heartbreaking near-miss in the film series' following installment. In fact, each Toy Story ending is essentially a closed book, with the continuation of the story being seemingly optional. As such, it becomes even sneakier that a Toy Story 2 character gave the game away for a key Toy Story 3 moment.
https://screenrant.com/toy-story-2-stinky-pete-prediciton-toy-story-3/