Skip to content

UMjCameraFeedEntry

UMG widget row that binds to a single UMjCamera and displays its live feed.

Its Blueprint counterpart (WBP_MjCameraFeedEntry) must contain: - UTextBlock "CameraNameText" — displays MjCamera::MjName - UImage "FeedImage" — shows the render target via a UMaterialInstanceDynamic Usage: UMjCameraFeedEntry* Entry = CreateWidget(..., CameraFeedEntryClass); Entry->BindToCamera(Cam); MyVerticalBox->AddChildToVerticalBox(Entry); The owning widget should call UpdateFeed() each tick and UnbindCamera() before switching the articulation selection, so streaming is cleanly disabled on old cameras.

Attribute Value
Kind Class
UE Macro UCLASS
Inherits UUserWidget

Properties

Protected Properties

Property Type Description
CameraNameText UTextBlock* Camera name label. Must exist in the UMG Blueprint.
FeedImage UImage* Live feed image. Must exist in the UMG Blueprint.

CameraNameText

Camera name label. Must exist in the UMG Blueprint.

  • Type: UTextBlock*

FeedImage

Live feed image. Must exist in the UMG Blueprint.

  • Type: UImage*

Functions

Public Functions

MuJoCo|UI

Function Returns Description
BindToCamera() void Binds this entry to a camera.
UnbindCamera() void Disables streaming on the bound camera and clears internal state.
UpdateFeed() void Called each tick by the owning widget to keep the image brush valid.
GetBoundCamera() UMjCamera* Returns the bound camera (for streaming teardown from the owning widget).
BindToCamera

Binds this entry to a camera.

  • Signature: BindToCamera(UMjCamera* InCamera)
  • Blueprint: 🔵 Callable
UnbindCamera

Disables streaming on the bound camera and clears internal state.

  • Signature: UnbindCamera()
  • Blueprint: 🔵 Callable
UpdateFeed

Called each tick by the owning widget to keep the image brush valid.

  • Signature: UpdateFeed()
  • Blueprint: 🔵 Callable
GetBoundCamera

Returns the bound camera (for streaming teardown from the owning widget).

  • Signature: GetBoundCamera()
  • Blueprint: 🔵 Callable
  • Returns: UMjCamera*

Private Functions

General

Function Returns Description
RefreshBrush() void (Re-)applies the FSlateBrush to FeedImage using the current render target.
RefreshBrush

(Re-)applies the FSlateBrush to FeedImage using the current render target.

  • Signature: RefreshBrush()