there is no errors in unity editor. when i build it on my android phone(android 9). the speech to text function detect nothing even i tick the "is show popup android". i use unity 2021.3.5f1. following errors showed
09-13 01:09:31.559: E/Unity(26927): A scripted object (probably UnityEngine.XR.MagicLeap.MagicLeapSettings?) has a different serialization layout when loading. (Read 52 bytes but expected 76 bytes)
09-13 01:09:31.559: E/Unity(26927): Did you #ifdef UNITY_EDITOR a section of your serialized properties in any of your scripts?
following is the code that i use for running the function
`using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using TextSpeech;
using UnityEngine.Android;
using UnityEngine.UI;
using TMPro;
public class VoiceController : MonoBehaviour
{
const string LANG_CODE = "en-US";
[SerializeField]
TextMeshProUGUI uiText;
there is no errors in unity editor. when i build it on my android phone(android 9). the speech to text function detect nothing even i tick the "is show popup android". i use unity 2021.3.5f1. following errors showed
09-13 01:09:31.559: E/Unity(26927): A scripted object (probably UnityEngine.XR.MagicLeap.MagicLeapSettings?) has a different serialization layout when loading. (Read 52 bytes but expected 76 bytes) 09-13 01:09:31.559: E/Unity(26927): Did you #ifdef UNITY_EDITOR a section of your serialized properties in any of your scripts?
following is the code that i use for running the function `using System.Collections; using System.Collections.Generic; using UnityEngine; using TextSpeech; using UnityEngine.Android; using UnityEngine.UI; using TMPro;
public class VoiceController : MonoBehaviour { const string LANG_CODE = "en-US"; [SerializeField] TextMeshProUGUI uiText;
if UNITY_ANDROID
endif
if UNITY_ANDROID
endif
} `