Drawing on one Whiteboard (Render Target) is copied to all Whiteboards?

I’m using the Unreal Engine 4 [VR Content Examples][1] where it has a whiteboard you can draw on. It uses render targets to render the line to the canvas.

The problem is, when I copy the whiteboard to use somewhere else in the level, it shows the same drawing, like this:

Here is the material and texture I am using:

I tried to make a copy of the material and the texture and use it on one of the whiteboards but it has the same result. I’m not sure why the render target is not instanced/unique? Why is it drawing on the same thing on multiple instances of the whiteboard?

In the construction script you need to “create dynamic material instance” then promote it to a variable. Assign that material instance to the board material and use that instance throughout the blueprint.

I think I tried to do what you are saying, here is the code I used to try and create a dynamic material instance but It still had the same problem:

	myRenderTarget = CreateRenderTarget2D(1024, 1024, ETextureRenderTargetFormat::RTF_RGBA16f);
	UMaterialInstanceDynamic* rtMaterial = UMaterialInstanceDynamic::Create(myBoardMaterial, this, FName("RenderTargetMaterial"));
	rtMaterial->SetTextureParameterValue(FName("BaseColor"), myRenderTarget);
	myBoardComponent->SetMaterial(0, rtMaterial);

Any other ideas? I tried making a material instance of the original material and setting it as the material for the board but still the same issue.

I’m not sure whether or not the code is correct cause I generally use blueprints for that.
you could double check that the BaseColor parameter matches the name in the material.
And you could delete the render target that the whiteboard was originally using. if that causes it to break somehow then the whiteboard is still trying to write to it somewhere.

also there is a spelling error for the render target in your pic, so make sure that isn’t cause some error.

Can you show me the blueprint code of what you have? I’m trying to make the texture render target 2d dynamically, then pass it to the dynamic material instance, then set the material once the game starts and I can see the white for the white board but I cannot draw on it. Since I couldn’t draw on it, i tried just executing this code for one of the whiteboards but it still had the original issue even when dynamically creating the texture render target (draw on one, see on all).