Olivia Wilde recently opened up about what it was like having her 5-year-old daughter on the set of “Don’t Worry Darling.”

On Wednesday, the 38-year-old actress and director appeared on “The Late Show with Stephen Colbert” and talked about several things about her sophomore directorial stint. These include her experience having her youngest child be part of the material, playing the role of her character’s daughter, according to People.

As noted, Wilde shared it was “really great” to have her daughter on the set with her. She explained her reason, noting that it had something to do with how her child saw her.

The magazine quoted the “In Time” actress, sharing, “I really loved that she was seeing me in that light. Like somewhere subconsciously this is seeping in, that her mother is in charge and is supported by this awesome crew.”

Elsewhere in the engagement with the television host, Olivia Wilde talked about her daughter’s role in “Don’t Worry Darling,” which hit the big screens on Friday. She described her child as “very good” at playing the character.

Considering that the “Lazarus Effect” star played the role of her daughter’s mother in the film, this led Colbert to wonder whether she parents her child the same way in the movie as in real life.

Olivia Wilde responded that her character was “like the drunk 1950s version” of her. She added that she “was a little meaner in the movie than [she] would be to [her daughter].”

The “TRON: Legacy” actress shares her 5-year-old daughter with former partner, Jason Sudeikis. They are also parents to a son, whom they welcomed in 2014.

On Wednesday’s episode of “The Kelly Clarkson Show,” Wilde also engaged with the “Because Of You” singer and talked about her life as a single parent. It comes as she and Sudeikis ended their relationship and engagement in 2020.

People, in a report covering the exchange, reported that the “Change-Up” actress explained why being a single mom can be “tough.” As stated, she shared that “reshaping a family is tricky,” although she acknowledged the “one benefit” of the situation.

The magazine quoted Olivia Wilde from the guesting, saying, “It’s allowed for some really deep conversations with my kids about emotions and about happiness and about what family means and love. It’s actually allowed me to get to know them in a different way.”

It continues, “My priority is them. That’s what it is. It’s as long as they’re happy and they’re healthy then, my ex and I, we agree on that. They are everything to us.”