# A dynamically spawned CaptureComponent2D SceneCapture Actor does not apply the flags which are set in the details panel

**URL:** <https://forums.unrealengine.com/t/a-dynamically-spawned-capturecomponent2d-scenecapture-actor-does-not-apply-the-flags-which-are-set-in-the-details-panel/313223>\
**Category:** Character & Animation\
**Tags:** bug, Scene-Capture, unreal-engine, report, bug-report, question\
**Created:** [March 30, 2015, 11:12pm UTC](https://forums.unrealengine.com/t/a-dynamically-spawned-capturecomponent2d-scenecapture-actor-does-not-apply-the-flags-which-are-set-in-the-details-panel/313223 "2015-03-30T23:12:53Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![John\_Alcatraz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@John\_Alcatraz](https://forums.unrealengine.com/u/John_Alcatraz)\
**Post date:** [March 30, 2015, 11:12pm UTC](https://forums.unrealengine.com/t/a-dynamically-spawned-capturecomponent2d-scenecapture-actor-does-not-apply-the-flags-which-are-set-in-the-details-panel/313223/1 "2015-03-30T23:12:53Z")

</div>

I try to change the flags in the details panel of the CaptureComponent2D:

[http://puu.sh/gVLuS/467f66ecb2.png](http://puu.sh/gVLuS/467f66ecb2.png)

Then I spawn the SceneCapture Actor in Event Begin Play of the PlayerController and unfortunately the default values are used, so I see static meshes, fog, skeletal meshes and so on. But if I change one of these values during runtime (clicking on the SceneCapture2D Actor and change one flag) they all get applied.

If I just place the SceneCapture Actor manually in the Editor all flags are applied correctly.

---

<div class="post-metadata">

**Author:** ![TJ\_V](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tj_v/32/1008648_2.png) [@TJ\_V](https://forums.unrealengine.com/u/TJ_V)\
**Post date:** [March 31, 2015, 1:54pm UTC](https://forums.unrealengine.com/t/a-dynamically-spawned-capturecomponent2d-scenecapture-actor-does-not-apply-the-flags-which-are-set-in-the-details-panel/313223/2 "2015-03-31T13:54:34Z")

</div>

Hi John,

How exactly are you setting up the Target Texture at runtime while spawning the SceneCapture2D off of the Event Begin Play?

We found that setting it in the Details panel after playing was the only successful way but that isn’t really a useful implementation in a game. However once spawned, toggling the flags worked correctly for us in 4.7.3.

Also, one of our Rendering Engineers is wondering why you are spawning the SceneCapture this way instead of adding it as a component to the blueprint or adding it to the level directly?

---

<div class="post-metadata">

**Author:** ![John\_Alcatraz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@John\_Alcatraz](https://forums.unrealengine.com/u/John_Alcatraz)\
**Post date:** [March 31, 2015, 3:43pm UTC](https://forums.unrealengine.com/t/a-dynamically-spawned-capturecomponent2d-scenecapture-actor-does-not-apply-the-flags-which-are-set-in-the-details-panel/313223/3 "2015-03-31T15:43:18Z")

</div>

I don’t set up the target texture at runtime, the target texture I have defined in the SceneCapture2D CaptureComponent2D Component (it’s always the same).

Toggling the flags on runtime works, yes. But before you toggle any of the flags at runtime always the default values are used and NOT the values you set inside of the spawned Actor.

I should add it as a component to what? I don’t wan’t to add it manually in the Editor because that’s just an extra step of work. It should just work with every level without having me to place it there. It’s for a minimap, so I need it in every level.

---

<div class="post-metadata">

**Author:** ![TJ\_V](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tj_v/32/1008648_2.png) [@TJ\_V](https://forums.unrealengine.com/u/TJ_V)\
**Post date:** [March 31, 2015, 7:07pm UTC](https://forums.unrealengine.com/t/a-dynamically-spawned-capturecomponent2d-scenecapture-actor-does-not-apply-the-flags-which-are-set-in-the-details-panel/313223/4 "2015-03-31T19:07:39Z")

</div>

We haven’t been able to reproduce this yet. I have included a small test project that we’ve create which has a basic mini-map setup using a SceneCapture2D. Could you recreate the error that you are seeing in this testbed and then upload it here? It’s using version 4.7.3 of the editor.

Test Project

---

<div class="post-metadata">

**Author:** ![John\_Alcatraz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@John\_Alcatraz](https://forums.unrealengine.com/u/John_Alcatraz)\
**Post date:** [March 31, 2015, 7:32pm UTC](https://forums.unrealengine.com/t/a-dynamically-spawned-capturecomponent2d-scenecapture-actor-does-not-apply-the-flags-which-are-set-in-the-details-panel/313223/5 "2015-03-31T19:32:11Z")

</div>

I am not able to reproduce it in your project, I wonder why. Actually, I can’t even get the atmospheric fog to get rendered on the texture. Even if I add so much fog that I can’t see more far than 1 meter and I place the SceneCapture2D 5000 Units in the Air pointing down, I still don’t see any fog on the texture. I only clearly see the meshes. Your project is quite strange, do you have an idea why the fog is not rendered on the texture?

---

<div class="post-metadata">

**Author:** ![TJ\_V](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tj_v/32/1008648_2.png) [@TJ\_V](https://forums.unrealengine.com/u/TJ_V)\
**Post date:** [March 31, 2015, 8:19pm UTC](https://forums.unrealengine.com/t/a-dynamically-spawned-capturecomponent2d-scenecapture-actor-does-not-apply-the-flags-which-are-set-in-the-details-panel/313223/6 "2015-03-31T20:19:05Z")

</div>

It’s a current limitation of UMG. If you put the ‘NewMaterial’ onto a static mesh it will show the fog correctly.

---

<div class="post-metadata">

**Author:** ![John\_Alcatraz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@John\_Alcatraz](https://forums.unrealengine.com/u/John_Alcatraz)\
**Post date:** [April 4, 2015, 3:14am UTC](https://forums.unrealengine.com/t/a-dynamically-spawned-capturecomponent2d-scenecapture-actor-does-not-apply-the-flags-which-are-set-in-the-details-panel/313223/7 "2015-04-04T03:14:00Z")

</div>

Ok you are right, what is this “limitation” of UMG?

If I put the material on a static mesh I can see the fog.

---

<div class="post-metadata">

**Author:** ![John\_Alcatraz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@John\_Alcatraz](https://forums.unrealengine.com/u/John_Alcatraz)\
**Post date:** [April 4, 2015, 3:26am UTC](https://forums.unrealengine.com/t/a-dynamically-spawned-capturecomponent2d-scenecapture-actor-does-not-apply-the-flags-which-are-set-in-the-details-panel/313223/8 "2015-04-04T03:26:03Z")

</div>

I was able to reproduce it in your project and will upload it shortly.

---

<div class="post-metadata">

**Author:** ![John\_Alcatraz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@John\_Alcatraz](https://forums.unrealengine.com/u/John_Alcatraz)\
**Post date:** [April 4, 2015, 3:29am UTC](https://forums.unrealengine.com/t/a-dynamically-spawned-capturecomponent2d-scenecapture-actor-does-not-apply-the-flags-which-are-set-in-the-details-panel/313223/9 "2015-04-04T03:29:33Z")

</div>

Here it is:

> **[Meet Google Drive – One place for all your files](https://accounts.google.com/ServiceLogin?service=wise&passive=1209600&continue=https:%2F%2Fdrive.google.com%2Ffile%2Fd%2F0BzqDz_3FVfpOLUtZZ0NjZEpWZWM%2Fview?usp%3Dsharing&followup=https:%2F%2Fdrive.google.com%2Ffile%2Fd%2F0BzqDz_3FVfpOLUtZZ0NjZEpWZWM%2Fview?usp%3Dsharing)**
>
> Google Drive is a free way to keep your files backed up and easy to reach from any phone, tablet, or computer. Start with 15GB of Google storage – free.

---

<div class="post-metadata">

**Author:** ![TJ\_V](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tj_v/32/1008648_2.png) [@TJ\_V](https://forums.unrealengine.com/u/TJ_V)\
**Post date:** [April 7, 2015, 3:49pm UTC](https://forums.unrealengine.com/t/a-dynamically-spawned-capturecomponent2d-scenecapture-actor-does-not-apply-the-flags-which-are-set-in-the-details-panel/313223/10 "2015-04-07T15:49:24Z")

</div>

Hi John,

Thanks for re-uploading that project. I have created JIRA UE-13368 for the issue and our developers will be investigating it further. We’ll post back here with updates as we have them.

Also, the UMG limitation that I mentioned is that it doesn’t correctly display Atmospheric Fog at the moment.

Just a side note, it is not recommended to use Atmospheric Fog and Exponential Height Fog in the same level. They do not interact well with one another.

Cheers,

TJ

---

<div class="post-metadata">

**Author:** ![John\_Alcatraz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@John\_Alcatraz](https://forums.unrealengine.com/u/John_Alcatraz)\
**Post date:** [July 10, 2015, 9:04pm UTC](https://forums.unrealengine.com/t/a-dynamically-spawned-capturecomponent2d-scenecapture-actor-does-not-apply-the-flags-which-are-set-in-the-details-panel/313223/11 "2015-07-10T21:04:00Z")

</div>

Hi TJ, are there any updates on this?

---

<div class="post-metadata">

**Author:** ![TJ\_V](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tj_v/32/1008648_2.png) [@TJ\_V](https://forums.unrealengine.com/u/TJ_V)\
**Post date:** [July 13, 2015, 2:59pm UTC](https://forums.unrealengine.com/t/a-dynamically-spawned-capturecomponent2d-scenecapture-actor-does-not-apply-the-flags-which-are-set-in-the-details-panel/313223/12 "2015-07-13T14:59:22Z")

</div>

Hi John,

This has been fixed and is working properly for me in the 4.8.1 build. If you are still seeing this not working in your project, could you try testing it in a new project and let me know your results?
