Drawing a box to help with editing

I’m using the free version of Unity and just getting started. I want to make a square/box that shows me the size of my play area, as the eventual game will be on a iPhone 4. That way I can size things to fit the screen. I don’t want the box to show in the game, just in the editor.

Also, is there a way to lock the editor view to the game camera?


For first case exist useful tool - Gizmos. Check doc here http://unity3d.com/support/documentation/ScriptReference/Gizmos.html
Very simple example of using gizmos for your case:

using UnityEngine;

public class BoxGizmo : MonoBehaviour {

	public float boxSize = 1;
	void OnDrawGizmosSelected() {
        Gizmos.DrawWireCube(transform.position, new Vector3(boxSize, boxSize, boxSize));

And what do you mean by “editor view”? Scene view? If so - no, but im not sure.

In case you want to use landscape view: In the upper left corner of your game view is a dropdown box where you can select the aspect ratio for it. iPhone wide uses a 3:2 aspect ratio, iPad wide is 4:3.