renderCamera.pixelWidth is off in the beginning

I’ve noticed if I do a trace in a Start method for the screen size

Vector2 screenSize = new Vector2(renderCamera.pixelWidth,renderCamera.pixelHeight);

I’ll get 640, if I wait about couple seconds it eventually traces out to its real screen size 1920, why is that

It’s the Unity 3 maximize-on-play bug.

–Eric

great, any work around for that, or any way to get the real width at Start

Maximize the game window yourself before playing, don’t use maximize-on-play.

–Eric