Update Current Camera Transform Programmatically

+1 vote
asked Jan 29, 2017 by digantdj (17 points)

I am working with a GameObject which due to certain crucial reasons can't be moved and hence, after being imported or loaded it loads somewhere random on screen.

Is there a way to adjust camera(StereoRig) such that it focuses on the GameObject programmatically upon Instantiate? I can do it using the Current Camera Transform button but didn't find many resources to adjust the same through code.

Any help is much appreciated. Thanks!