All-in-One Solution for Indie Game Development · Empowering Indie Developers' Dreams
Game Frame X Web View is a Web View component for the Game Frame X game framework. It allows you to embed and display web content within Unity games.
This component wraps gree/unity-webview, providing a simpler API and easier integration.
- Display web pages within Unity games
- Interact between C# and JavaScript
- Fullscreen support
- Android and iOS platform support
- Open
Package Managerin Unity Editor - Click
+and selectAdd package from git URL... - Enter
https://github.com/gameframex/com.gameframex.unity.webview.git - Click
Add
using GameFrameX.WebView.Runtime;
using UnityEngine;
public class Example : MonoBehaviour
{
void Start()
{
var webView = FindObjectOfType<WebViewComponent>();
webView.Show("https://gameframex.doc.alianblank.com");
}
}Show(string url)- Display a web view and load the specified URLHide()- Hide the web viewMakeFullScreen()- Set the web view to fullscreenExecuteJavaScript(string javaScript)- Execute JavaScript code
This repository is licensed under the MIT License.