I want to achieve a system where I can use render textures as portraits/icons. So when I select something I want to show it in my UI, currently I do:
- Spawn my prefab with the model (I have one of these prefabs for each model), in my case this prefab has a camera (for render texture), a model, and a spotlight.
- Show this render texture in my UI
This is fairly straight forward when I only need one render texture at a time. But say I select a house and want to see all residents, now I need 6-10 render textures all showing different models.
Should I create/destroy render texture assets at runtime for this type of feature, since each camera would need its own render texture? Im worried its an expensive feature that costs more than its worth perhaps.
Or do I need to create one render texture asset for each model in my game, and simply point to it in the prefab mentioned above?
Is there a smarter way?