Skip to content
Snippets Groups Projects
Unverified Commit 7d637328 authored by Bjoern Esswein's avatar Bjoern Esswein
Browse files

Launch the browser in the Start event to allow other scripts to change the...

Launch the browser in the Start event to allow other scripts to change the targetURL in the previous events Awake or OnEnable
parent 0569dede
No related branches found
No related tags found
No related merge requests found
......@@ -7,6 +7,7 @@ using Newtonsoft.Json.Serialization;
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using UnityEngine;
using UnityEngine.Events;
......@@ -66,14 +67,10 @@ namespace bessw.Unity.WebView
// Start is called before the first frame update
private void Start()
{
Debug.LogWarning("start Webview");
Debug.LogWarning("start Webview Component");
rawImage = this.gameObject.GetComponent<RawImage>();
rectTransform = this.gameObject.GetComponent<RectTransform>();
}
private void OnEnable()
{
Debug.LogWarning("enable Webview");
Browser.headless = headlessBrowser;
browser = Browser.getInstance();
......@@ -90,7 +87,6 @@ namespace bessw.Unity.WebView
rawImage.SetNativeSize();
}));
}));
}
public IEnumerator createScreenshots ()
......
{
"name": "bessw.unity.webview",
"version": "0.0.2",
"version": "0.0.3",
"description": "An interactive browser for unity running the systems browser in headless mode and rendering it to a texture instead.",
"displayName": "WebView",
"author": "Bj\u00f6rn E\u00dfwein",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment