有,就是遊戲reload 目前scene/ load其他scene,Live2D的clickevent就會失效了而解決方法我也摸不透…DontDestroyOnLoad是可以解決第一次,但第二次加載就...
追评
有,就是遊戲reload 目前scene/ load其他scene,Live2D的clickevent就會失效了
而解決方法我也摸不透…DontDestroyOnLoad是可以解決第一次,但第二次加載就不行了,clickevent完全失效
代碼如下:
MissingReferenceException: The object of type 'Transform' has been destroyed but you are still trying to access it.
Your script should either check if it is null or you should not destroy the object.
UnityEngine.Transform.TransformPoint (Vector3 position) (at C:/buildslave/unity/build/artifacts/generated/common/runtime/TransformBindings.gen.cs:392)
LAppView.UpdateTouchPos_3DCamera (Vector3 inputPos) (at Assets/Scripts/sample/LAppView.cs:235)
LAppView.TouchesBegan (Vector3 inputPos) (at Assets/Scripts/sample/LAppView.cs:81)
LAppModel.TouchesBegan (Vector3 inputPos) (at Assets/Scripts/sample/LAppModel.cs:557)
LAppLive2DManager.TouchesBegan (Vector3 inputPos) (at Assets/Scripts/sample/LAppLive2DManager.cs:119)
MyGameController.Update () (at Assets/Scripts/sample/MyGameController.cs:38)
追评