| UObjectBase
|
Module |
|
Header |
/Engine/Plugins/Lumin/MagicLeapCamera/Source/MagicLeapCamera/Public/MagicLeapCameraFunctionLibrary.h |
Include |
#include "MagicLeapCameraFunctionLibrary.h" |
[UCLASS](Programming/UnrealArchitecture/Reference/Classes#classdeclaration)(ClassGroup=MagicLeap)
class UMagicLeapCameraFunctionLibrary : public UBlueprintFunctionLibrary
The MagicLeapCameraFunctionLibrary provides access to the camera capture functionality. Users of this library are able to asynchronously capture camera images and footage to file. Alternatively, a camera image can be captured directly to texture. The user need only make the relevant asynchronous call and then register the appropriate event handlers for the operation's completion.
Name | Description | ||
---|---|---|---|
|
CameraConnect ( |
Establishes a connection with the device's camera. |
|
|
CameraDisconnect ( |
Disconnects from the device's camera. |
|
|
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 event handler. |
|
|
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. |
|
|
IsCapturing() |
Gets the capture state of the component. |
|
|
SetLogDelegate ( |
Sets the delegate by which the system can pass log messages back to the calling blueprint. |
|
|
StartRecordingAsync ( |
Initiates the capturing of video/audio data on a separate thread. |
|
|
StopRecordingAsync ( |
Stops the recording and saves the video/audio data to an mp4 file. |