AppLovin Corp. made an unsolicited proposal to merge with Unity Software Inc. in an all-stock deal valued at $20 billion, in an apparent attempt to muscle in on a previously planned acquisition of its rival.

AppLovin, which markets software platforms for app developers to help them find customers and bring in revenue, is offering gaming platform Unity an alternative to its recently announced $4.4 billion deal to buy IronSource. The deal proposed is structured as a takeover that allows Unity to run the combined company.

Unity, whose software underpins many of the most popular video games, agreed last month to buy IronSource to boost its advertising technology, which has suffered under recent data-privacy changes by Apple Inc. Unity’s advertising and monetization products have been under pressure ever since Apple made it harder for companies to track ad views across mobile devices. IronSource, which competes with AppLovin, provides ad technology and gives game developers tools to find customers, make their games stickier, and earn money faster. The proposed merger with AppLovin would be contingent on Unity canceling its planned acquisition of IronSource, according to the statement.

AppLovin, whose shares are down 62 percent this year, is looking to capitalize on the growing demand for three-dimensional gaming, which is a specialty of Unity. The Palo Alto, California-based company proposes that Unity Chief Executive Officer John Riccitiello would be head of the combined business and AppLovin’s CEO Adam Foroughi become chief operating officer.

“We believe that together, AppLovin and Unity create a market leading business that has tremendous growth,” Foroughi said in the statement.

“Given its proposed deal for IronSource, we believe it’s unlikely for Unity Software to accept a seemingly hostile bid from AppLovin,” said Bloomberg Intelligence analyst Mandeep Singh. “A merger between AppLovin and Unity could help increase their first-party data to offset headwinds from Apple’s privacy changes, yet there will likely be a high overlap between IronSource and AppLovin’s ad-tech platforms, and the combined company may have to carry out a large restructuring down the line to cut costs.”

Backed by Sequoia and Silver Lake Partners, Unity hasn’t been immune to the economic forces roiling the broader tech sector and gaming in particular. The industry is seeing a post-pandemic slump as people return to the office and other activities, while there has been a dearth of major new gaming titles this year and new consoles from PlayStation and Xbox have been hard to get due to ongoing supply chain issues. This year has also seen some of the largest video game deals and there are more likely on the way.

In July Unity lowered its annual revenue forecast and its stock is down more than 63 percent this year. In addition to the dismal earnings report, Unity last month announced plans to cut 4 percent of its 5,900 employees internationally.

AppLovin is offering $58.85 a share for the gaming technology platform, an 18 percent premium to Monday’s closing share price. According to terms of the offer, each share of Unity common stock would be exchanged for 1.152 shares of AppLovin Class A voting common stock and 0.314 shares of a newly created non-voting Class C stock. Unity shareholders would control 55 percent of the combined company and 49 percent of the voting rights.

The proposal would allow for Applovin’s Class B shares, which KKR owns a chunk of, to be converted to Class A shares.

The combination of AppLovin and Unity would generate estimated adjusted earnings before interest, tax, depreciation and amortization of more than $3 billion by the end of 2024, “and would be in the best interest of shareholders of both companies,” Foroughi said in the statement.

AppLovin is being advised by JPMorgan Chase & Co. and Wilson Sonsini Goodrich & Rosati.