The player Kyle Shanahan studied on video was a lot better than the player he saw on the stat sheet.

The 49ers coach said he places a lot more emphasis on how he projects a player in his offense than what the player did with his former team.

And that is why the 49ers placed a large priority on signing former Minnesota Vikings running back Jerick McKinnonon the first day of the free-agent signing period. McKinnon comes to the 49ers on a four-year, $30 million contract with $11.7 million guaranteed.

McKinnon's stats might not suggest he is anywhere near a top running back in the NFL, but Shanahan sees it differently. And that is why the 49ers opted to pursue McKinnon instead of Carlos Hyde.

“I don’t know the numbers until I like the guy,” Shanahan said. “I always watch the guy first, and turn on the tape and get lost in it for a while. There were so many things I liked about him, visualizing how we would use him and stuff he would do. And even though there wasn’t a ton of it, you still got to see him do some stuff that we do a lot. Where he did it, he excelled a ton and was very good at it.

“Eventually, I look at the numbers and it did surprise me. Then you go back and you try to see why. I’m not going to get into all the whys, but I know all the stuff we liked about him, we cut up those numbers. I think they would’ve been good numbers.”

In four NFL seasons as a part-time player, McKinnon (5-9, 205), averaged 4.0 yards per rushing attempt. The past two years, he gained 539 and 570 yards with rushing averages of just 3.4 and 3.8 yards.

Hyde (6-foot, 230) is a bigger back with more production in his career. He rushed for 988 and 938 yards in 2016 and ’17 with averages of 4.6 and 3.9 yards.

Shanahan said he looked at every player who was available, and McKinnon was the player he evaluated to be the best of all the free agents. Shanahan has long valued running backs who are versatile in the run and pass games with an ability to make defenders miss.

“A good run is when you get more yards than what it was blocked for,” Shanahan said. “Sometimes, runs are blocked for negative 1 (yard) and the best run in the game was a 1-yard carry.

“Sometimes the one that most people could do is a 60-yarder because it was a busted coverage or a busted front and nobody was there. Numbers do tell stuff, but it’s never an absolute."

The 49ers signed McKinnon to be the starting running back with Matt Breida likely mixing into the action. The 49ers could also be in the market to add to the competition and depth through the draft.

Shanahan is likely to deploy multiple players, just as he did successfully with Atlanta Falcons running backs Devonta Freeman and Tevin Coleman. McKinnon is expected to take Freeman’s role. In each of Shanahan’s two seasons as Falcons offensive coordinator, Freeman accounted for more than 1,500 yards from scrimmage. He rushed for 1,056 and 1,079 yards while catching 578 and 462 yards in passes.

“I’m just excited to be in the offense that I feel is a perfect fit for me,” McKinnon said on Thursday at Levi’s Stadium in Santa Clara.

“Things that coach Shanahan has done with the backs like he did in Atlanta with Devonta Freeman and Tevin Coleman, I see myself doing those kinds of things. For me, I feel like the scheme is right. The fit was just perfect for me. I feel like I can’t be in a better situation as a player.”

Shanahan said he liked McKinnon as a draft prospect in 2014 out of Georgia Southern but it was more difficult to evaluate him because he mostly played quarterback in college.

But in studying McKinnon while with the Vikings, he saw a runner who has speed and elusiveness while also exhibiting the strength to break arm tackles. He set the record at the NFL Scouting Combine for running backs with 32 reps of 225 pounds in the bench press in 2014. But McKinnon's best asset might be his ability to be a factor in the passing game in blitz pickup, while also being a dependable receiver out of the backfield or in the slot.

“When it comes to separating and beating linebackers and safeties in man-to-man coverage, I definitely think he’s an issue for teams,” Shanahan said. “I think this league, when it comes to third downs and things like that, you move the chains based off of matchups, which allows you to get points in the long run. I think Jerick is very versatile and we can do a lot of things with him.

“He’s good enough to make it as a runner alone in this league. He’s good enough to make it in the pass game as just a third down threat alone, but when you can do both of those, it gives you a lot of freedom as a coach.”