Hi everyone,
in my project in Unreal Engine 5.4 (blueprint) I created two identical BP computer actors but each one has a widget that simulates an operating system (DOS type) different for each terminal:
Each terminal has a 2D component (Scene Component) to make it seem like you are in front of the display after interacting with it.
When the computers are both on stage in the same level you can only see the typed parts and dynamic text in one of the 2 (randomly). Even though you can’t see the commands you type, they work regularly.
If I use the terminals, both on stage in the same level, but without the SceneComp2D (I simply add to viewport of the widget with the operating system) everything works regularly.
If I use the terminals with the SceneComp2D but one at a time in the level they always work well.
The problem would therefore seem to be linked to the display with the scenecomponent2d but only when they are both on stage.
Has anyone encountered a similar problem or have suggestions on how to solve this problem? Any suggestions or troubleshooting tips would be greatly appreciated!
Do you mean Scene Capture 2D?
The problem is most likely that they are all trying to render their image on a single Render Target Texture.
You either need to create multiple ones in the content browser and assign them to each terminal, or dynamically create a texture in blueprint and assign it as the target for the capture component.
Thanks for the answer, I have already tried to assign a render target for each scene campture component 2d but the result gets worse. In this way, not even the only one that used to work no longer works, I can’t understand where I’m going wrong.
If you tell me that the way is that I will try again.
You were right (and I had no doubts).
You did well to tell me that the problem was the single render target because I wasn’t sure and I put my attention back to that point… but not only that.
Stupidly when I did the test with 2 render targets, one for each actor BP, they created the same widget and everything got messed up. Once I created both a render target for actors and a widget each everything magically fixed itself. Thank you so much, you helped me a lot!