The Republican candidate for governor, Carl P. Paladino, told a gathering in Williamsburg, Brooklyn, on Sunday that children should not be “brainwashed” into thinking that homosexuality was acceptable, and criticized his opponent, Attorney General Andrew M. Cuomo, for marching in a gay pride parade earlier this year.

Addressing Orthodox Jewish leaders, Mr. Paladino described his opposition to same-sex marriage.

“I just think my children and your children would be much better off and much more successful getting married and raising a family, and I don’t want them brainwashed into thinking that homosexuality is an equally valid and successful option — it isn’t,” he said, reading from a prepared address, according to a video of the event.

And then, to applause at Congregation Shaarei Chaim, he said: “I didn’t march in the gay parade this year — the gay pride parade this year. My opponent did, and that’s not the example we should be showing our children.” Newsday.com reported that Mr. Paladino’s prepared text had included the sentence: “There is nothing to be proud of in being a dysfunctional homosexual.” But Mr. Paladino omitted the sentence in his speech.

About an hour after Mr. Paladino’s remarks, Mr. Cuomo’s campaign released a statement condemning them.