public static void CreateAsync(bool showHolograms, OnCaptureResourceCreatedCallback onCreatedCallback) { NRPhotoCapture photocapture = new NRPhotoCapture(); photocapture.m_CaptureContext = FrameCaptureContextFactory.Create(); onCreatedCallback?.Invoke(photocapture); }
public static void CreateAsync(bool showHolograms, OnCaptureResourceCreatedCallback onCreatedCallback) { NRPhotoCapture photocapture = new NRPhotoCapture(); photocapture.CaptureBehaviour = NRCaptureBehaviour.Create(() => { if (onCreatedCallback != null) { onCreatedCallback(photocapture); } }); }