Senator Ted Cruz has positioned himself as a strong opponent of same-sex marriage, urging pastors nationwide to preach in support of marriage as an institution between a man and a woman, which he said was “ordained by God.”

But on Monday night, at a reception for him at the Manhattan apartment of two prominent gay hoteliers, the Texas senator and Republican presidential hopeful struck quite a different tone.

During the gathering, according to two people present, Mr. Cruz said he would not love his daughters any differently if one of them was gay. He did not mention his opposition to same-sex marriage, saying only that marriage is an issue that should be left to the states.

The dinner and “fireside chat” for about a dozen people with Mr. Cruz and his wife, Heidi, was at the Central Park South penthouse of Mati Weiderpass and Ian Reisner, longtime business partners who were once a couple and who have been pioneers in the gay hospitality industry.