UMagicLeapCameraFunctionLibrary::CaptureImageToTextureAsync

The user should register event handlers for both the success and fail events. Upon completion, a successful operation will provide a dynamically generated texture containing the captured image to the FMagicLeapCameraCaptureImgToTextureSuccess event handler. @note The generated texture will be garbage collected when this app is destroyed.

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 CaptureImageToTextureAsync
(
    const FMagicLeapCameraCaptureImgToTexture & ResultDelegate
)

Remarks

Initiates a capture image to memory task on a speparate 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 texture.

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