UMagicLeapCameraComponent::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.

Windows
MacOS
Linux

References

Module

MagicLeapCamera

Header

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

Include

#include "MagicLeapCameraComponent.h"

Source

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

Syntax

[UFUNCTION](Programming/UnrealArchitecture/Reference/Functions)(BlueprintCallable, Category="Camera | MagicLeap")
virtual bool CaptureImageToTextureAsync()

Remarks

Initiates a capture image to memory task on a speparate thread.

The generated texture will be garbage collected when this app is destroyed.

Returns

True if the call succeeds, false otherwise.

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