I’m making a game where there are numerous NPC characters who do the gathering, building etc.
I want to have it so you can open a details UI for them which shows them in close up what they’re doing at that time. On all the NPCs, I have a Scene Capture Component 2D and I have the UI made with an image set to a Render Target.
How do I change the source of the render target at runtime, based on which character I have selected?