ARFoundation 3.1.3 support?

Hello, we were trying to add the Litho controller to an existing project, in which we use AR Foundation 3.1.3 (which is incompatible with Litho, while it is already few months old), but the SDK gives us compiler errors. Do you plan to update the SDK for newer AR Foundation versions?

1 Like

Hi Lukasz,

What are your compiler errors? And what platform are you building for? Know of several other people using the SDK with more recent versions of ARFoundation but it might require some small changes.

Longer-term we are planning on releasing an SDK for Unity 2020.1 and ARFoundation 4.0 at the end of August.

Best
Nat

1 Like

Hello Nat,

We are building it for iPhone (iOS 13.0+).
The compiler errors are:

Packages/litho-beta-2019-12-16-v0-6-0/Core/Scripts/AR/ARManager.cs(56,17): error CS0246: The type or namespace name 'SegmentationDepthMode' could not be found (are you missing a using directive or an assembly reference?)
Packages/litho-beta-2019-12-16-v0-6-0/Core/Scripts/AR/ARManager.cs(60,17): error CS0246: The type or namespace name 'SegmentationStencilMode' could not be found (are you missing a using directive or an assembly reference?)

For now we simply commented out these lines:

       // [SerializeField]
       // [Tooltip("The quality of human depth segmentation to use")]
       // private SegmentationDepthMode _segmentationDepthMode = SegmentationDepthMode.Best;

       // [SerializeField]
       // [Tooltip("The quality of human stencil segmentation to use")]
       // private SegmentationStencilMode _segmentationStencilMode = SegmentationStencilMode.Best;
                // AROcclusionManager occlusionManager
                //    = cameraManager.gameObject.AddComponent<AROcclusionManager>();
                // occlusionManager.humanSegmentationDepthMode = _segmentationDepthMode;
                // occlusionManager.humanSegmentationStencilMode = _segmentationStencilMode;

and we managed to use LITHO in our app.

1 Like

Ah I see. Commenting that out should be fine as long as you don’t need to change people occlusion settings.

Can you upgrade your ARFoundation and ARKit packages to 4.0.2?

If so this version of ARManager.cs should work. ARManager.cs (21.0 KB)

This guide should be of help if anything else in your project needs updating. Let me know if this sorts it?