Required Project Settings

UNITY PROJECTS IMPORTANT MUST READ

  1. MUST SET FOR ALL DEVICES: Go to Project Settings->Player-Other Settings and scroll down. Make sure to set “Managed Stripping Level" to Minimal or Disabled.

    image-20240227-195104.png

  2. Windows and MacOS

    1. IMPORTANT: In Project Settings->Player->Resolution and Presentation check “Run In Background”. If this is not checked when you switch between applications voice/video streaming will stop working, and also copresence and connection to the server will stop.

      image-20240227-194901.png
  3. All Devices

    1. If using Cavrnus' voice/video streaming system, go to Project Settings->Audio and set DSP Buffer Size to “Best Latency”

  4. MacOS, iOS and visionOS

    1. IMPORTANT: Unity Editor for Silicon - When running in the Editor for MacOS, iOS or visionOS; if you are running the Unity Editor for Silicon the Cavrnus voice/video streaming system will not work in Editor, this will also cause errors when trying to connect to a space so when running the Unity Editor for Silicon you must “Disable Voice and Video” in the Cavrnus Spatial Connector.

    2. IMPORTANT: Unity Editor for Intel64 - To enable voice/video streaming in the Unity Editor, launch the Unity Editor for Intel64.

  5. MacOS

    1. IMPORTANT: When building a MacOS application, if you are using Cavrnus voice/video streaming you must build it to Intel64 for the voice/video streaming system to work.

  6. iOS and visionOS

    • IMPORTANT: When building to a iOS, visionOS device, if using voice/video streaming, in the XCODE project go to UnityFramework->Build Phases->Link Binary With Libraries and select the libvpxfm-iOS.a, libopusfm-iOS.a and libyuvfm-iOS.a and move to the top of the list. See screenshot below.

  7. visionOS

    • IMPORTANT: When building to visionOS device in the XCODE project in Preprocessors.h set UNITY_USES_WEBCAM=0

  8. Magic Leap

    • IMPORTANT: When building to a Magic Leap device make sure to Check “Disable Acoustic Echo Cancellation” in the Cavrnus Spatial Connector

  9. In Unity make sure to have your Scale for the UI on the top of Unity set to 1, otherwise you may not see the default Cavrnus UI that gets loaded on start.

 

Related pages