UMagicLeapCameraFunctionLibrary::CaptureImageToFileAsync

The newly created jpeg file will have an automatically generated name which is guaranteed to be unique. Upon completion, a successful operation will provide the file path of the newly created jpeg to the [FMagicLeapCameraCaptureImgToFile](API\Plugins\MagicLeapCamera\FMagicLeapCameraCaptureImgToFile) event handler.

Windows
MacOS
Linux

References

Module

MagicLeapCamera

Header

/Engine/Plugins/Lumin/MagicLeapCamera/Source/MagicLeapCamera/Public/MagicLeapCameraFunctionLibrary.h

Include

#include "MagicLeapCameraFunctionLibrary.h"

Source

/Engine/Plugins/Lumin/MagicLeapCamera/Source/MagicLeapCamera/Private/MagicLeapCameraFunctionLibrary.cpp

Syntax

[UFUNCTION](Programming/UnrealArchitecture/Reference/Functions)(BlueprintCallable, Category="Camera Function Library | MagicLeap")
static bool CaptureImageToFileAsync
(
    const FMagicLeapCameraCaptureImgToFile & ResultDelegate
)

Remarks

Initiates a capture image to file task on a separate thread.

Returns

True if the call succeeds, false otherwise.

Parameters

Parameter

Description

ResultDelegate

The delegate to be notified once the camera image has been saved to a jpeg file.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss