Mixed martial arts star Conor McGregor has been arraigned on felony criminal mischief and other charges following a backstage melee at a New York City event on Thursday.

McGregor answered, "Yes, your honour" when the judge asked Friday whether he understood orders to stay away from the alleged victims in the case. He also was charged with misdemeanor assault, menacing and reckless endangerment.

McGregor was released on $50,000 bond and co-defendant Cian Cowley on $25,000 bond. Both are due back in court June 14.

The two men exited the courthouse in Brooklyn, got into an SUV and left.

McGregor's attorney, Jim Walden, asked Judge Connie Melendez to allow his client to travel and "pursue his craft." Walden said McGregor is "the most visible face on the planet" and has no criminal history.

Conor McGregor is making his presence felt here in NYC. Felice Herrig just posted this clip of him on IG going a little wild. 😱 <a href="https://t.co/arvUJF1pV2">pic.twitter.com/arvUJF1pV2</a> —@MikeBohnMMA

UFC president Dana White said Friday he spoke to McGregor via text and the brawler said the confrontation was something that "had to be done."

"It was probably the worst conversation we ever had," White told FS1's "First Things First" on Friday morning. "We talked yesterday before he turned himself in.

"It's not that I don't think he understood what happened. He justified it. It was justified to him."

White said the 29-year-old McGregor said he was sorry about the fighters who were injured, but, "this had to be done."

Video showed McGregor with a group of people causing chaos Thursday as they took an elevator to the loading dock at Barclays Center. He can be seen tossing trash cans and being prevented from throwing a barricade at a bus during his unannounced appearance in New York.

Trio of fights removed from UFC 223

Police said McGregor threw a hand truck at a bus causing minor injury to a person on the bus. UFC said three fights on Saturday's UFC 223 card have been scrapped as a result of the incident.

"The organization deems today's disruption completely unacceptable and is currently working on the consequences that will follow," UFC said in a statement. "Individuals involved in the incident are not welcome at tomorrow's ceremonial weigh-in or Saturday's event at Barclays Center."

McGregor hasn't fought for UFC since November 2016 and was stripped this week by UFC president Dana White of the 155-pound championship he had never defended. White also said this week he did not expect McGregor to attend Saturday's fights.

McGregor profanely responded on Twitter and wrote, "You'll strip me of nothing." He was just getting started.

McGregor last fought at all in a boxing match he lost to Floyd Mayweather Jr. on Aug. 26, 2017.

McGregor's future in doubt

The popular Irishman is tight with UFC 223 fighter Artem Lobov, who was involved this week in a scuffle in a hotel with Khabib Nurmagomedov. Nurmagomedov fights Max Holloway for the lightweight championship left vacant by McGregor.

Lobov was yanked from the card and banned from the building.

Michael Chiesa was sent to the hospital with injuries sustained in the attack and was forced out of his scheduled fight against Anthony Pettis.

"A decision was made by the New York State Athletic Commission to pull me from UFC 223," Chiesa tweeted. "I'm devastated to say the least. I hope to run this match up ASAP. June 9th in your backyard. That's all I have to say for now. Much love."

Flyweight Ray Borg suffered multiple cornea abrasions in the wake of the McGregor attack and his fight against Brandon Moreno was also scratched.

White said this week in New York that McGregor would fight again for UFC this year. McGregor's actions now put any future fights in doubt.

McGregor once held the 145 and 155-pound championships at the same time and boldly stated he wanted an ownership stake in UFC. But the trash-talking, egocentric has been out of the fight game except for his boxing dalliance with Mayweather that made him wealthy enough to never have to fight again. McGregor and his girlfriend welcomed their first child, a son, in May 2017.