38 #include "CoherentBaseComponent.h"
39 #include "CoherentUILiveViewComponent.generated.h"
55 UCLASS(ClassGroup = UI, hidecategories = Object, editinlinenew, meta = (BlueprintSpawnableComponent, DisplayName =
"Coherent UI Live View"))
58 GENERATED_UCLASS_BODY()
61 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category =
"Live View")
65 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Live View")
66 bool UpdateEveryFrame;
69 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Live View")
74 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Live View")
75 bool UpdateWhenPaused;
78 UFUNCTION(BlueprintCallable, Category = "Live View")
79 void QueueUpdateLiveViewOnRenderThread();
82 virtual
void InitializeComponent() override;
83 virtual
void TickComponent(
float DeltaTime, enum ELevelTick TickType, FActorComponentTickFunction *ThisTickFunction) override;
84 virtual
void OnUnregister() override;
88 void CopyBytesToLiveViewMemoryMirror(
void* Source, int32 CountInBytes, uint32 Stride, EPixelFormat TexturePixelFormat);
89 void UpdateLiveViewWithMemoryMirrorData();
90 void OnNewImageDataSize(int32 NewWidth, int32 NewHeight);
94 void OnReadyForBindingsHandler(int32 FrameID, const FString& Path,
bool IsMainFrame);
96 void OnBindingsReleasedHandler(int32 FrameID, const FString& Path,
bool IsMainFrame);
98 void DestroyImageData();
99 void RecreateImageData();
102 Coherent::UI::ImageData* LiveViewImageData;
104 TArray<uint8> ImageBytes;
105 bool bLiveViewImageDataReady;
107 bool bImageDataNeedsResize;
Definition: CoherentUILiveViewComponent.h:56
Definition: CoherentBaseComponent.h:76