Former NSW government minister David Campbell - who quit as a minister after being filmed coming out of a gay club - has announced he will resign from NSW Parliament.

Mr Campbell said he was extremely proud of his achievements in Parliament.

Mr Campbell ... will stay in Parliament until the March election. Credit:Kirk Gilmour

He said it was not an easy decision to retire but he thought it was the right time.

He will remain in Parliament until the election in March next year.