Camera.ViewportSize returns 1,1 on start of running in Studio

The ViewportSize property of the Camera returns 1,1 instead of the actual viewport size on the first few frames of running in Studio. This only happens in Studio and not in Live games.

12 Likes

Thanks for letting us know! Just sent this one over to the team. We’ll update you as soon as we can.

3 Likes

Any update on this? Still a huge issue, breaking a ton of things in my game

5 Likes

Hey @NinjoOnline, does this occur during playtest in Studio, or only while editing in Studio?

Sorry that the person you asked for is not answering, I’m just following this topic because I had a lot of problems related to this in one of my games(
For me it happens when I do a playtest in Studio. Usually I use waiting until the camera’s ViewportSize is 1.1. But I also think that this should not happen, and ViewportSize should be equal to the screen resolution right away…

5 Likes

I though i was doing some operations wrong but its because of this bug. Im really surprised that after a year, this bug keeps happening.

3 Likes

Still getting this bug to this day. No updates?

Don’t know why the tag Needs Information is slapped onto the post, seems like it was pretty clear in laying out all the necessary information

2 Likes

This is still a prevalent issue to this day. Currently a workaround is a while true do loop expecting the magnitude of the workspace.Camera.ViewportSize to be greater than 1; would’ve been nice if we didn’t have to resort to these methods to reliably get ViewportSize

2 Likes