Over 11,000 five-star assets

Rated by 85,000+ customers

Supported by 100,000+ forum members

Every asset moderated by Unity

1/4
Detect when your webgl app was paused!
Render pipeline compatibility
The Built-in Render Pipeline is Unity’s default render pipeline. It is a general-purpose render pipeline that has limited options for customization. The Universal Render Pipeline (URP) is a Scriptable Render Pipeline that is quick and easy to customize, and lets you create optimized graphics across a wide range of platforms. The High Definition Render Pipeline (HDRP) is a Scriptable Render Pipeline that lets you create cutting-edge, high-fidelity graphics on high-end platforms.
Unity VersionBuilt-inURPHDRP
2019.4.36f1
Compatible
Compatible
Compatible
Description

The OnApplicationPause method does not work on webgl. Hence, this plugin was made to detect when a webgl app has been paused. This can be useful if you want to show a “paused” screen if the web app pauses, and then when the user comes back he can unpause the app(or unpause automatically), for example.


If you like my plugin, please consider leaving a review. It helps me immensely and encourages me to improve the plugin further, and other people to support my work :).

Technical details
  1. You can detect if the web app paused because you switched tabs and/or
  2. You can detect if the web app paused because it lost focus for any reason.

OnPauseWebGL

(not enough ratings)
7 users have favourite this asset
(7)
$20
Seat
1
Updated price and taxes/VAT calculated at checkout
Refund policy
This asset is covered by the Unity Asset Store Refund Policy. Please see section 2.9.3 of the EULA for details.
Secure checkout:
Supported payment methods: Visa, Mastercard, Maestro, Paypal, Amex
License type
File size
105.5 KB
Latest version
1.0
Latest release date
Mar 29, 2022
Original Unity version
2019.4.36
Quality assets
Over 11,000 five-star assets
Trusted
Rated by 85,000+ customers
Community support
Supported by 100,000+ forum members
Unity logo
Language
Feedback
Partners Program
Partners
USD
EUR
Copyright © 2025 Unity Technologies
All prices are exclusive of tax
USD
EUR