How To get a Screenshot

hello!

actually i know hot to get it, but i’m working on switch and when the screenshot (for a ui panel) is got in handheld mode and then put the switch on the doc, the size of the screenshot doesn’t fit the entire screen, how i should work with it? any help?

Since Switch is under NDA, the general script forum won’t be able to help you. If you develop for switch officially, you should have access to the proper forum sections.

thank’s you for your help, but what i’m asking to is not strictly related to the switch but with the resize of a spriterenderer on the resolution change.

this is what i’m doing now

                    float width = renderer.bounds.size.x;
                    float height = renderer.bounds.size.y;

                    float worldScreenHeight = camera.orthographicSize * 2.0f;
                    float worldScreenWidth = worldScreenHeight / Screen.height * Screen.width;

                    float x = worldScreenWidth / width;
                    float y = worldScreenHeight / height;

but it work on when it set the initial size, but won’t work properly when the size of the screen change and i’m going to recall it again…
any help? what i’m doing wrong?