Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Properties of the DepthImageVisualizer class for Unity
public class DepthImageVisualizer : MonoBehaviour
{
public ARCameraManager CameraManager
{
get => _cameraManager;
set => _cameraManager = value;
}
[SerializeField]
[Tooltip("The ARCameraManager which will produce camera frame events.")]
private ARCameraManager _cameraManager;
public AROcclusionManager OcclusionManager
{
get => _occlusionManager;
set => _occlusionManager = value;
}
[SerializeField]
[Tooltip("The AROcclusionManager which will produce depth textures.")]
private AROcclusionManager _occlusionManager;
public RawImage RawImage
{
get => _rawImage;
set => _rawImage = value;
}
[SerializeField]
[Tooltip("The UI RawImage used to display the image on screen.")]
private RawImage _rawImage;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment