Hello, thank you for getting in touch and for your support!
There are known to be
differences between target platforms, including when it comes to the depth calculation, which is the case.
In this specific situation, adding the following script to the camera will have it behave in the Android platform the same way as in the Windows platform:
- Code: Select all
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[ExecuteInEditMode]
public class CameraSetup : MonoBehaviour
{
private void Awake()
{
GetComponent<Camera>().depthTextureMode |= DepthTextureMode.Depth;
}
}
Please let me know if this helps, thanks!