Timeline for Displaying a RenderTexture in 2D
Current License: CC BY-SA 4.0
11 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jun 15, 2022 at 18:06 | answer | added | Mangata | timeline score: 5 | |
| Jun 15, 2022 at 14:45 | comment | added | Matt Gregory | Rendered together in a batch? Do you mean like in a situation where you have a sprite sheet with a bunch of parts of a character, like his head is one sprite, his body is another, etc., and you arrange those to create a pose for the character? | |
| Jun 15, 2022 at 14:14 | comment | added | DMGregory♦ | If you've solved your problem, post your solution as an Answer below. The reason the Editor does not support the shortcut of making a material from a texture when dragging it onto a SpriteRenderer is that SpriteRenderers are made to render Sprites, not textures. A sprite can be a subset of a texture, and many sprites from the same texture can be rendered together in a batch. So the workflow to support that is to create a Sprite first. Providing the shortcut would make it easy to skip this step and break batching, gaining no benefits from the SpriteRenderer over a quad. | |
| Jun 15, 2022 at 14:09 | comment | added | Matt Gregory | I still don't understand why it doesn't work with SpriteRenderer. | |
| Jun 15, 2022 at 14:08 | comment | added | Matt Gregory | Oh wait! I got it, I got it. I can play with the material. | |
| Jun 15, 2022 at 14:05 | comment | added | Matt Gregory | And it doesn't doesn't render properly on the quad. It's too dark. | |
| Jun 15, 2022 at 13:51 | comment | added | Matt Gregory | Oh, I see. But why do I need to do that? I don't understand. Sprites have a material property, but it just doesn't work? | |
| Jun 15, 2022 at 13:48 | comment | added | Mangata | You can create a 3D Quad instead of 2D Square. There is no real 2D in unity, you can mix them. | |
| Jun 15, 2022 at 13:36 | comment | added | DMGregory♦ | Did you try using a quad MeshRenderer instead of a SpriteRenderer? | |
| Jun 15, 2022 at 13:28 | history | edited | Matt Gregory | CC BY-SA 4.0 |
edited title
|
| Jun 15, 2022 at 13:05 | history | asked | Matt Gregory | CC BY-SA 4.0 |