Updated

Get all the latest news on coronavirus and more delivered daily to your inbox.  Sign up here.

Arnold Schwarzenegger gave a virtual commencement speech to the class of 2020 graduating amid the coronavirus pandemic where he took a jab at President Trump.

The 72-year-old "Terminator" actor appeared in a video in which he spoke directly to the students graduating in 2020 in an effort to soften the blow of in-person ceremonies being canceled across the country due to the coronavirus pandemic. The actor discussed the importance of overcoming life’s obstacles and noted that commencement is a time to celebrate not just earning one’s degree, but the tireless hours they took to get there.

"You are celebrating that journey today. Not just a piece of paper that you hang on a wall," the actor declared

HOW CORONAVIRUS DIFFERS FROM FLU: SYMPTOMS TO WATCH FOR

With that, Schwarzenegger held up an honorary doctorate he received from Trump University, Trump’s failed 2004 venture that was eventually shuttered following allegations of fraud.

"This is nothing," the actor declared while holding the framed degree. "I mean we all have these pieces of paper, but let’s be honest. This celebration, by the way, is not the end. Yes, it is the end of this particular chapter, but it is the beginning of your next climb. It is time to celebrate now, be in the moment, go all out, yes of course. But tomorrow, when this is all over, it’s time to start developing your vision and it’s time to start climbing toward your vision."

Elsewhere in the commencement speech, the actor highlighted the importance of overcoming obstacles by telling the story of his unexpected heart surgery two years ago. 

Schwarzenegger was scheduled for non-invasive heart surgery to replace a valve in 2018 when doctors discovered a complication and were forced to do emergency open-heart surgery on him.

QUESTIONS ABOUT CORONAVIRUS? ASK AN EXPERT

"[The doctor] told me they had to do emergency surgery," he said of the moment he woke up 16 hours after a planned four-hour procedure. "That something went wrong during this non-invasive procedure and then it became very invasive. They said that they broke through the heart wall and there was internal bleeding and I could have died if they didn’t open up my sternum and do open heart surgery." 

Arnold Schwarzenegger took a jab at Trump University during a virtual 2020 commencement speech. (Randy Holmes via Getty Images)

Schwarzenegger explained that he spent his time in recovery visualizing his goal of being back on the set of "Terminator: Dark Fate" on time, which he was eventually able to do.

"My usual principles worked. Because I was visualizing right away that I’m going to be on the date, Aug. 1. I’m going to be on the set and I’ll be filming ‘Terminator’ and I’ll be doing my fight scene and everything else it requires."

He added: "The reason that I’m telling you all this is because, no matter how successful you are, life will always throw obstacles in your path."  

CLICK HERE TO GET THE FOX NEWS APP

The star concluded his speech on a comedic note, stepping out from behind his podium to reveal that he had not been wearing pants with his suit jacket the entire time.