unity draw wire square

C#
public Vector3 Scale;

void OnDrawGizmosSelected()
{
	Gizmos.color = Color.green;
	Gizmos.DrawWireCube(transform.position, Scale);
}
Source

Also in C#: