Although he's best known for playing Thor in Marvel's ever-expanding cinematic universe, Chris Hemsworth's career is more than his portrayal of the God of Thunder.

Like any actor, Hemsworth wants his performances to resonate with audiences, which may lead to him walking away from a project if the script doesn't work for him, as he did with the fourth Star Trek. Now, he's revealed that it very nearly happened with another film -- 2016's controversial Ghostbusters reboot.

RELATED: Chris Hemsworth Explains Why He Turned Down Star Trek 4

Though it ended up being one of his favorite roles to date, Hemsworth told Variety he came close to leaving the Paul Feig-directed movie at the last minute. “The night before I was shooting, I almost pulled out."

According to Hemsworth, there were a number of requested script changes that were promised but never made. “Three or four weeks prior, Paul said to me, ‘I’m going to write up the character. Don’t worry,’” the actor recalled. "And then I got the script and nothing had changed."

Hemsworth's agent had to set up a last-minute meeting with Feig in order to save the project. Hemsworth was assured his character's role would be bigger than the script indicated, but it would rely a lot on the actor's ability to improvise on set. “I was really scared walking onto that set,” Hemsworth admitted. “I had no real plan, so I was just feeding off of them, and I just felt ridiculous. So I used that.”

RELATED: Chris Hemsworth Wants to Do More Thor Movies for Marvel Studios

Though the reboot was less successful than the cast and studio had hoped, Hemsworth's star continues to rise. In addition to returning as Thor in several Marvel films, the actor's next role will re-team him with his Thor: Ragnarok co-star Tessa Thompson in Men in Black: International, in theaters June 14.