In 2016, after various injuries had taken their toll on the longtime superstar, he proved to have one more highlight in him, scoring 60 points in his final game while leading the last-place Lakers to a surprising win over the Utah Jazz.

Off the court, Bryant’s legacy was far more complicated. He was arrested in 2003 after a sexual assault complaint was filed against him in Colorado. A 19-year-old hotel employee claimed that Bryant, who was working to rehabilitate his knee following surgery, had raped her. The legal case against Bryant was eventually dropped, and a civil suit was settled privately out of court, but Bryant publicly apologized for the incident.

“Although I truly believe this encounter between us was consensual, I recognize now that she did not and does not view this incident the same way I did,” he said in his statement. “After months of reviewing discovery, listening to her attorney, and even her testimony in person, I now understand how she feels that she did not consent to this encounter.”

In retirement, Bryant became something of a champion for women’s sports and expanded his purview, winning an Academy Award in 2018 for his animated short film “Dear Basketball” while also creating the web series “Detail” for ESPN in which he analyzed current players.

“My heart can take the pounding / My mind can handle the grind / But my body knows it’s time to say goodbye,” he wrote in “Dear Basketball,” the poem that he wrote to announce his retirement that was the basis for the short film.

He was scheduled to headline the 2020 N.B.A. Hall of Fame nominees.