By roxgame
on Sun, 02/06/2022 - 03:34
Vuforia 10.4.4 crash in unity 2020.3.18f1 when trying to disable ARcamera in virtual button call back public GameObject Arcamera;
void Start() { siBtn.RegisterOnButtonPressed(SiPressed); siBtn.RegisterOnButtonReleased(SiReleased); } void SiPressed(VirtualButtonBehaviour vb) {
} void SiReleased(VirtualButtonBehaviour vb) { Debug.Log("Si"); CameraSelectionCallbackEvent?.Invoke("Si");
Arcamera.SetActive(false); // it crash only when i call this line am trying to disable the camera when not needed
// VuforiaBehaviour.Instance.enabled = false; }
minimal code that could
minimal code that could crash unity
public VirtualButtonBehaviour siBtn;
public GameObject arcamera;
Vuforia require an AR camera
Vuforia require an AR camera to work, so u can't just go and disable it.
Vuforia require an AR camera
Vuforia require an AR camera to work, so u can't just go and disable it.