UGTK / Toolkit / Utility Systems / LinkOpener System Completed
Link Opener System
Summary
The LinkOpenerSystem is a utility system designed to handle the opening of URLs within Unity. This system provides an easy way to open web links or deep links that can either be opened in a web browser or directly in a compatible app, depending on the URL provided.
Content
Modules Dependencies
None. One MonoBehaviour, no UGTK reference: it can be used independently.
Setup
To set up the LinkOpenerSystem, follow these steps:
Setting Up the Link Opener
- Add the
LinkOpenerPrefab to your scene:
- Add URL:
Testing Scene
Technical Info
The following is the main script and workflow of the LinkOpenerSystem.
Scripts:
- Mn_LinkOpener: The core component of the system, which contains the logic for opening URLs. It checks if the URL is empty before attempting to open it, and it logs a warning if the URL is not set.
Good to know:
Application.OpenURLbehaves differently on every platform. On desktop it hands the URL to the default browser; on mobile it leaves your app (and on iOS amailto:/tel:/custom scheme with no installed handler simply does nothing); on WebGL it is a popup, so the browser can block it unless it happens inside a real user click — which is exactly what a Button gives you. Do not call it fromStartor from a timer on WebGL.- Deep links need the scheme registered by the target app.
instagram://user?username=...only works if Instagram is installed: there is no callback telling you it failed, so pair it with a web fallback if it matters. - An empty URL only logs a warning — nothing opens, nothing throws.
- The prefabs:
LinkOpenerButtonis the generic one,Instagrama ready-made deep-link example.
© 2026 Marcello De Bonis. All rights reserved
Depends on 1
Used by 0
- No other module depends on it.
Measured from the repository: code references (asmdef) plus prefab and asset GUIDs. Importing this module alone brings in 1 module in total.
UGTKengine within an engine


