Search Unity

Question Multiple XR plugin issue! [ASAP]

Discussion in 'XR Interaction Toolkit and Input' started by Archi_16, Oct 25, 2021.

  1. Archi_16

    Archi_16

    Joined:
    Apr 7, 2017
    Posts:
    87
    I have one problem. I have 2 XR plugins.
    1. ARCore XR Plugin
    2. Google Cardboard XR plugin.

    When they both selected, only ARCore initializes, and when using Cardboard function, it says "Plugin must be initialized"
    upload_2021-10-25_18-49-31.png ,

    When I uncheck the ARCore. Cardboard works great.

    Tried to use this
    https://docs.unity3d.com/Manual/xrsdk-runtime-discovery.html
    But when I call Start(). it gives me errors
    RenderTexture.Create failed: width & height must be larger than 0
    Screen position out of view frustum (screen pos 0.000000, 0.000000, 1000.000000) (Camera rect 0 0 0 0)
    Screen position out of view frustum (screen pos 0.000000, 0.000000, 1000.000000) (Camera rect 0 0 0 0)
    RenderTexture.Create failed: width & height must be larger than 0
    RenderTexture.Create failed: width & height must be larger than 0
    Screen position out of view frustum (screen pos 0.000000, 0.000000, 1000.000000) (Camera rect 0 0 0 0)
    Screen position out of view frustum (screen pos 0.000000, 0.000000, 1000.000000) (Camera rect 0 0 0 0)
    RenderTexture.Create failed: width & height must be larger than 0
    RenderTexture.Create failed: width & height must be larger than 0



    Question. How to Initialize each plugin separately. Thanks