|
|
|
|
|
|
using Unity.UIWidgets.external.simplejson; |
|
|
|
using Unity.UIWidgets.foundation; |
|
|
|
using Unity.UIWidgets.service; |
|
|
|
using System.Runtime.InteropServices; |
|
|
|
using Unity.UIWidgets.ui; |
|
|
|
using UnityEngine; |
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
void UpdateNameIfNeed() { |
|
|
|
#if UNITY_ANDROID || UNITY_WEBGL
|
|
|
|
#if UNITY_IOS || UNITY_ANDROID || UNITY_WEBGL
|
|
|
|
var name = gameObject.name; |
|
|
|
if (name != _lastObjectName) { |
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
void OnUIWidgetsMethodMessage(string message) { |
|
|
|
using (Isolate.getScope(TextInput._currentConnection.isolate)) { |
|
|
|
using (Isolate.getScope(UIWidgetsPanel.anyIsolate)) { |
|
|
|
JSONObject jsonObject = (JSONObject) JSON.Parse(message); |
|
|
|
string channel = jsonObject["channel"].Value; |
|
|
|
string method = jsonObject["method"].Value; |
|
|
|