“Star Trek” actor George Takei says it’s “unfortunate” that the “Sulu” character he made famous will be gay in the latest installment of the sci-fi movie franchise.

Takei, 79, who announced he was gay in 2005, made the comment in response to a revelation by the actor playing Capt. Hikaru Sulu in the film “Star Trek Beyond,” which opens July 22.

John Cho told Australia’s Herald Sun that in the new film, Sulu is married to a man and is a father of a daughter with his partner.

The decision to make an original “Trek” character gay comes as Hollywood faces growing pressure for diversity in films. There is yet to be an openly gay ­superhero or action-star leading character in a film.

However, Takei, who since coming out has been vocal about LGBT issues, told The Hollywood Reporter that late “Star Trek” creator Gene Roddenberry would not have liked making Sulu gay.

“It’s a twisting of Gene’s creation, to which he put in so much thought. I think it’s really unfortunate,” said Takei, noting that Roddenberry had always envisioned the character as heterosexual.

Takei told the site he would have preferred that they instead create a new character who was gay.

“I told him, ‘Be imaginative and create a character who has a history of being gay, rather than Sulu, who had been straight all this time, suddenly being revealed as being closeted,’” Takei told the news site.