EWAN McGregor said reprising the role of Star Wars icon Obi-Wan Kenobi after almost two decades was a “different experience”.

The Scottish actor heads the cast of the Obi-Wan Kenobi TV series for Disney+ returning to the ­character he played in the three Star Wars ­prequels from 1999 to 2005.

McGregor, 51, said of the new ­production: “The writing I think was very good in this series.

“The script went through lots of ­different iterations, it was going to be a movie, it was going to be directed by Stephen Daldry at one point and then Deborah Chow became the ­director.

“I think after a long process of the film being a movie and then ­being a TV show, and several different ­storyline iterations, we ended up with a really good one.

“There was a lot of time and effort spent on the writing. I always felt like my lines were very Alec Guinness-y, I always felt like him and that’s a good sign for me.”

Obi-Wan Kenobi appeared in the first six Star Wars films, played by late theatre and film great Sir Alec Guinness in episodes IV-VI from 1977 to 1983, and then by McGregor in episodes I-III.

The pro-independence Scottish actor added: “It was a different experience technologically now as opposed to technologically 20 years ago, so of course it is a ­different world.”

The actor revealed it was the fans’ reaction to the prequel films years after they came out that encouraged him to reprise the role.

He said: “I became aware of the sort of warmth that there is for the prequels – when they came out, we didn’t have that sense.

“When they came out, there was no social media, I wasn’t aware of how the fans felt about the films, all I knew was that the critics didn’t like them, or what was written about the films was always negative.

“I’ve never been one to sort of look for fan reactions, but the noise we had coming back from the original films was pretty dire.

“The critics decided that they didn’t like them, that they were too different from the original Star Wars films of the 70s.

“We spent all this time and effort making the best we could out of old-fashioned technology and it was ­difficult to do.

“After all that effort and and also the excitement of being cast as Obi Wan Kenobi in the first place, to be stepping into the shoes of Guinness and to be going into that big world of Star Wars and then for it to get a bad reaction, it was hard and it’s taken years to start hearing and feeling the sort of warmth that there is for those films from really the people we made them for.

“It felt nice after waiting such a long time to feel that sort of warmth for them, it meant something to me and it was definitely part of my decision to want to do it again.”

McGregor revealed he watched all the original Star Wars films and listened to ­audio of Guinness’s performances when returning to the role they shared.

“I started doing these scenes with these actors and I just didn’t have his voice, I hadn’t really prepared enough. It just didn’t sound like him.

“So that’s when I started going back into all the original movies, I got them to make a sound file with just all Alec Guinness’s lines from all the three films that he did, and it’s not a lot you know.”

The actor also praised Sir Alec, who died in 2000, for his ability to be in only a “handful of scenes” but ­remain such a beloved character.

The new series begins 10 years after the events of the film Star Wars: Revenge Of The Sith where Kenobi faced the downfall of his best friend and Jedi apprentice, Anakin Skywalker.

The series is part of a collection of Star Wars shows created for Disney+.