Skip to content

Instantly share code, notes, and snippets.

@andijakl
Created November 27, 2020 10:05
Show Gist options
  • Save andijakl/1b77fc31787cf0b61ca513bb1397b3fd to your computer and use it in GitHub Desktop.
Save andijakl/1b77fc31787cf0b61ca513bb1397b3fd to your computer and use it in GitHub Desktop.
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