In my space sim I have a sub view of the main screen from the point of view of the the ship I am controlling.
Here is my ship in a nutshell:
Ship
Camera
SceneCaptureComponent2D
MyTexture
Now, the sub view works until… I create multiple ships. I am controlling one of course, the idea is that the others will be controlled by other players but not yet. Still they are required to exist in the game whether they have a player attached or not.
Now then. The texture is shared so what happens is, the image flickers between the cameras of the other ships and the one I am controlling. Mostly the image is from the ship I control but there is an image from at least one other ship that pops in and out. This all makes some sense. Naturally I want to stop it.
Problem is, textures are not instanced. I vaguely recall that they can be with some trick but I can’t find it anywhere.
Possible also is that I missed the boat or am working outside the box.
Any ideas?