From 753bbdfb8296d7dc737a796fdc60716f768d1611 Mon Sep 17 00:00:00 2001 From: ALEXTANG <574809918@qq.com> Date: Thu, 29 Jun 2023 11:25:33 +0800 Subject: [PATCH] =?UTF-8?q?[+]=20HybridCLR=20IOS=E7=9B=B8=E6=9C=BA?= =?UTF-8?q?=E6=9D=83=E9=99=90=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 大坑 没有任何异常、警告、日志 如果不写这个,就是没有响应 --- .../Main/DisStripCode/DisStripCode.cs | 53 ++++++++++++------- 1 file changed, 33 insertions(+), 20 deletions(-) diff --git a/Assets/GameScripts/Main/DisStripCode/DisStripCode.cs b/Assets/GameScripts/Main/DisStripCode/DisStripCode.cs index 4f3b527e..4f2fbdf5 100644 --- a/Assets/GameScripts/Main/DisStripCode/DisStripCode.cs +++ b/Assets/GameScripts/Main/DisStripCode/DisStripCode.cs @@ -6,27 +6,40 @@ using UnityEngine; /// public class DisStripCode : MonoBehaviour { - private void Awake() - { - //UnityEngine.Physics - RegisterType(); - RegisterType(); - RegisterType(); - RegisterType(); - - //UnityEngine.Graphics - RegisterType(); - RegisterType(); - - //UnityEngine.Animation - RegisterType(); - RegisterType(); - } + private void Awake() + { + //UnityEngine.Physics + RegisterType(); + RegisterType(); + RegisterType(); + RegisterType(); + RegisterType(); - private void RegisterType() - { + RegisterType(); + RegisterType(); + + //UnityEngine.Graphics + RegisterType(); + RegisterType(); + + //UnityEngine.Animation + RegisterType(); + RegisterType(); + RegisterType(); + RegisterType(); + RegisterType(); + RegisterType(); + + //IOSCamera ios下相机权限的问题,用这种方法就可以解决了 问题防裁剪。 + foreach (var _ in WebCamTexture.devices) + { + } + } + + private void RegisterType() + { #if UNITY_EDITOR && false Debug.Log($"DisStripCode RegisterType :{typeof(T)}"); #endif - } -} + } +} \ No newline at end of file