I have a couple of Unity editor tools, both do the same but each one has extra…
- User
I have a couple of Unity editor tools, both do the same but each one has extra functionality that the other version needs, lemme expand: First is a tool that takes screenshots with alpha in Unity and runs in-game, it can only take transparent screenshots in the built in render pipeline, not the URP or HDRP Second is a tool that also takes screenshots with alpha in Unity but this one runs in an editor window and doesn't use coroutines to save its results, this one works in URP and HDRP (not sure about built in render pipeline but it's no issue since we have the other tool so the final tool should be one that can take screenshots both during editing and at runtime in all render pipelines preferrably using a coroutine
Assistant
To create a final tool that can take screenshots both during editing and at runtime in all render pipelines using a coroutine, you can combine the features of both of your existing tools. Here's a general outline of how you can do this:
-
Create a new script that will serve as the main screenshot tool. This script will handle the logic for taking screenshots in different render pipelines and at different times (during editing or at runtime).
-
In the new script, you can check the current render pipeline and determine whether to use the built-in render pipeline, URP, or HDRP for taking the screenshot.
-
For the built-in render pipeline, you can use the same code as the first tool that runs in-game.
-
For URP and HDRP, you can use the same code as the second tool that runs in the editor window.
-
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.