using EZXR.Glass.Rendering; using UnityEditor; using UnityEngine; namespace EZXR.Glass.Core { public partial class ARAbilities : MonoBehaviour { #region PhoneScreenUI(针对分体式眼镜) [MenuItem("GameObject/XR Abilities/Additional.../PhoneScreenUI", false, 90)] public static void EnablePhoneScreenUI() { if (FindObjectOfType() == null) { string filePath = "Assets/EZXRGlassSDK/Core/Shared/Resources/PhoneScreenUI.prefab"; if (AssetDatabase.LoadAssetAtPath(filePath) == null) { filePath = AssetDatabase.GUIDToAssetPath("cfbaf50af0b162b4ebe2e4180ff35950"); } Core.PrefabUtility.InstantiatePrefabWithUndoAndSelection(AssetDatabase.LoadAssetAtPath(filePath)); } } #endregion } }