Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How would I get the size of the studio window with a script?

Asked by 4 years ago
Edited 4 years ago

Im making a plugin to convert offset into scale, and I need to know the size of the screen of the person's device so I can convert it properly. Is there a service or method which I can use to do this? the size of this: https://media.discordapp.net/attachments/510573382623035408/703999272642805830/unknown.png?width=870&height=560

1 answer

Log in to vote
1
Answered by 4 years ago

CurrentCamera.ViewportSize It might be what you are looking for.

Ad

Answer this question