From 7fc77088e46dcd1cc33dd982bbfe6279e7212b52 Mon Sep 17 00:00:00 2001 From: Thaina Yu Date: Wed, 4 Oct 2023 15:19:32 +0700 Subject: [PATCH] Allow set urlConfig properties from other code (#16) Allow set urlConfig properties from other code (#16) --- CHANGELOG.md | 1 + Runtime/WebViewPanel.cs | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 825cd85..65520bb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/). + ## [1.2.1] - 2023.08.14 ### Fixed diff --git a/Runtime/WebViewPanel.cs b/Runtime/WebViewPanel.cs index 17164b3..f967749 100644 --- a/Runtime/WebViewPanel.cs +++ b/Runtime/WebViewPanel.cs @@ -18,6 +18,15 @@ public class WebViewPanel : MonoBehaviour [SerializeField] private ScreenPadding screenPadding; [SerializeField] private UrlConfig urlConfig; + public UrlConfig UrlConfig + { + get + { + urlConfig ??= new UrlConfig(); + return urlConfig; + } + } + [Space, SerializeField] public WebViewEvent OnAvatarCreated = new WebViewEvent(); [SerializeField] public WebViewEvent OnUserSet = new WebViewEvent(); [SerializeField] public WebViewEvent OnUserAuthorized = new WebViewEvent();