Geen omschrijving
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

UniWebViewSafeBrowingComponent.cs 533B

1234567891011121314151617181920
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. public class UniWebViewSafeBrowingComponent : MonoBehaviour
  5. {
  6. [SerializeField]
  7. #pragma warning disable 0649
  8. private string url;
  9. void Start()
  10. {
  11. if (string.IsNullOrEmpty(url)) {
  12. Debug.LogError("The `url` is empty or null. Set a valid url in the prefab before you initialize it.");
  13. return;
  14. }
  15. var safeBrowsing = UniWebViewSafeBrowsing.Create(url);
  16. safeBrowsing.Show();
  17. }
  18. }