Get camera size

Get camera size

Hello everyone!

I want to Instantiate objects at the borders of the Main Camera.
I read the Camera documentation but I can’t find a property or method which could give me the size of the camera or the borders of the camera.
Is there a way to get these information?

Thanks in advance!

For cocos creator, use Widget to align/position nodes.

For cocos x, use getWinSize

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.