Slowly but surely, Damyean Dotson has emerged to grab the Knicks backup shooting guard slot from Wayne Ellington and Allonzo Trier.

It wasn’t long ago Dotson was a complete afterthought in a crowded field after returning from offseason shoulder surgery to repair a torn labrum and missing the preseason.

Dotson, a second-round pick by Phil Jackson in 2017, started the regular season out of the rotation. He played three minutes in the first four games — in three of those he didn’t play at all — after being the starting shooting guard to close last season.

But in recent games, Dotson is emerging with his hustle, speed, defense and ability to impact the game. In Monday’s 123-105 win over the Cavaliers, Dotson made a big impact offensively with a season-high 11 points, making 5 of 10 shots in 18 minutes. Dotson also had another of his hustle plays, grabbing a loose ball that was going to be a turnover and driving to the basket for a score.

“I didn’t play any training camp, didn’t play any preseason games,’’ Dotson told The Post. “If you were a coach, you’d be skeptical throwing me out there because you don’t know if I’m ready or not. I had to go through a few practices, short spurts in games, to get my rhythm back. I’m still not 100 [percent], but I’m working and trying to get there.”

A former high school football player out of Houston, Dotson said he’s still getting his wind. He is considered the fastest sprinter on the team, just beating Dennis Smith Jr. in a race at practice.

“It was all part of the plan,’’ said Dotson, who couldn’t shoot most of the summer. “I still don’t think I‘m my normal self. I’m still getting rhythm back I can’t play as long as I want without getting tired.”

C Mitchell Robinson played with his sprained ankle on Monday, recording 16 minutes, seven points, four blocks and five fouls. Robinson sprained it again versus on Saturday. “I know with him, he’s going to be doing what he does,’’ coach David Fizdale said. “He’s going to fly around.’’… Fizdale admitted on the final Charlotte 3-point dagger by Devonte’ Graham on Saturday, Robinson was supposed to be up at the 3-point line. … Cavs forwards Kevin Love (back) and Larry Nance (thumb) missed the game.

For more on the Knicks, listen to the latest episode of the “Big Apple Buckets” podcast: