the fastest way is to make the camera child of the cube (in the editor), then in the Update() of the camera script use LookAt :

void Update() {
    transform.LookAt(transform.parent);
}


How do I make my camera follow my cube?
I have made some shortcode plugins according to my need. But this time I am getting a strange problem. My attributes in the shortcode are not getting the values written in the shortcode while executing them, instead I am just getting the default set values only. Please Help me.

add_shortcode('wi_form' , 'wi_form_func');

function wi_form_func($input) {
    extract(shortcode_atts( array(
        'productName'  =&gt; 'Java',
        'productPrice' =&gt; 1000
    ), $input));
    return $productName . esc_attr($productPrice);
}

