the 2007 NBA draft. On June 28, 2007, he was selected by the Portland Trail Blazers with the 37th overall pick in the NBA draft. On January 9, 2008, McRoberts was assigned to the Idaho Stampede, the Trail Blazers' D-League affiliate. After being with the Stampede for nearly a month, and getting an over 20-minute per game increase in playing time, McRoberts was called back up to the Trail Blazers. Indiana Pacers (2008–2011) On June 26, 2008, the night of the 2008 NBA draft, McRoberts was traded by the Trail Blazers to his hometown Indiana Pacers in a deal that sent him along with Brandon Rush and Jarrett Jack in return for 11th overall pick Jerryd Bayless and Ike Diogu. Los Angeles Lakers (2011–2012) On December 14, 2011, the Los Angeles Lakers signed McRoberts to a two-year deal worth about $6 million. Orlando Magic (2012–2013) On August 10, 2012, McRoberts was traded to the Orlando Magic as part of the blockbuster deal that sent All-Star center Dwight Howard to the Lakers. Charlotte Bobcats (2013–2014) On February 21, 2013, McRoberts was traded to the Charlotte Bobcats for Hakim Warrick. On July 11, 2013, McRoberts re-signed with the Bobcats. On March 28, 2014, McRoberts scored a career high 24 points in a loss to the Orlando Magic. He finished the season with career highs in games played and starts with 78 each. On April 30, 2014, McRoberts underwent successful surgery to remove bone spurs from his left big toe. On June 18, 2014, McRoberts opted out of his 2014–15 contract with the Charlotte Hornets. Miami Heat (2014–2017) On July 14, 2014, McRoberts signed with the Miami Heat to a reported four-year, $23 million contract. After tearing his right meniscus on December 9, 2014 against the Phoenix Suns, McRoberts underwent surgery to repair it on December 22 and was subsequently ruled out for the rest of the 2014–15 season; he appeared in just 17 games. After having most of 2014–15 season wiped out by injuries, McRoberts lost his starting spot because of Hassan Whiteside's emergence. He came into the 2015–16 season with a significant role off the bench, but that got away from him after missing nearly two months with a bruised knee. On December 27, 2016, McRoberts was ruled out indefinitely with a stress fracture in his problematic left foot. On May 23, 2017, McRoberts opted into his final year of his