# USceneCaptureComponent2D not capturing in realtime

**URL:** <https://forums.unrealengine.com/t/uscenecapturecomponent2d-not-capturing-in-realtime/478226>\
**Category:** Platform & Builds\
**Tags:** scenecapturecomponen, unreal-engine, render-target, question\
**Created:** [February 4, 2021, 4:34am UTC](https://forums.unrealengine.com/t/uscenecapturecomponent2d-not-capturing-in-realtime/478226 "2021-02-04T04:34:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![KielanT](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KielanT](https://forums.unrealengine.com/u/KielanT)\
**Post date:** [February 4, 2021, 4:34am UTC](https://forums.unrealengine.com/t/uscenecapturecomponent2d-not-capturing-in-realtime/478226/1 "2021-02-04T04:34:51Z")

</div>

Hi, I am making a mini map for a project using USceneCaptureComponent2D and a render target. I have it attached to my player. The map doesn’t update in real time. It only captures what it sees before the game starts. Also when I package the game the mini map is black

Character.cpp

```
	MapArm = CreateDefaultSubobject<USpringArmComponent>(TEXT("Map Arm")); // Creates a spring arm component to be setup
	MapArm->SetupAttachment(RootComponent); // Sets the attachment
	MapArm->SetRelativeRotation(FRotator(-90.0f, 0.0f, 0.0f)); // Sets the rotation of the spring arm

	MapCamera = CreateDefaultSubobject<USceneCaptureComponent2D>(TEXT("Map Camera")); // Creates a capture component
	MapCamera->SetupAttachment(MapArm); // Sets the attachment

```

Character.h

```
private:
	UPROPERTY(EditAnywhere)
		USpringArmComponent* MapArm; // Used for creating a spring arm component

	UPROPERTY(EditAnywhere)
		USceneCaptureComponent2D* MapCamera; // Gets the capture component
};

```

Character Blueprint uscene component details:

 ![328829-characterbp.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/2/c/e2cbff417e38f124646df902d49f2c395a89953b.png)

Widget:

![328830-widget.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/7/6/c7641bc523f191467b5b5186e363ef44aca0ad8b.png)

Thank you

---

<div class="post-metadata">

**Author:** ![Kehel18](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kehel18](https://forums.unrealengine.com/u/Kehel18)\
**Post date:** [February 4, 2021, 3:57pm UTC](https://forums.unrealengine.com/t/uscenecapturecomponent2d-not-capturing-in-realtime/478226/2 "2021-02-04T15:57:45Z")

</div>

Hi! Can you try to create UI material from that Render Target and use it on Image widget?

---

<div class="post-metadata">

**Author:** ![KielanT](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KielanT](https://forums.unrealengine.com/u/KielanT)\
**Post date:** [February 5, 2021, 2:18am UTC](https://forums.unrealengine.com/t/uscenecapturecomponent2d-not-capturing-in-realtime/478226/3 "2021-02-05T02:18:05Z")

</div>

That is what I have done

---

<div class="post-metadata">

**Author:** ![Kehel18](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kehel18](https://forums.unrealengine.com/u/Kehel18)\
**Post date:** [February 5, 2021, 4:16pm UTC](https://forums.unrealengine.com/t/uscenecapturecomponent2d-not-capturing-in-realtime/478226/4 "2021-02-05T16:16:26Z")

</div>

Does the same appears when you throw that material to 3D meshes?

---

<div class="post-metadata">

**Author:** ![KielanT](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KielanT](https://forums.unrealengine.com/u/KielanT)\
**Post date:** [February 6, 2021, 1:26pm UTC](https://forums.unrealengine.com/t/uscenecapturecomponent2d-not-capturing-in-realtime/478226/5 "2021-02-06T13:26:09Z")

</div>

I didn’t even think about testing that. It still doesn’t update on a 3d mesh. I’m definetly creating the material from the render target. I have done it multiple times recreating both the material and render target but it’s still not updating
