How to make an object always in front of the OVRPlayerController camera?

I already try to do the hierarchy of the object inside the OVRPlayerController camera, but only the object follows the camera at the sides, but when I look up or down the object no longer follows it.
Can you help me please?


Something like that should work.

public Transform target;
public float offset = 10;
void Update () {
    target.position = transform.position + transform.forward * offset;
    target.rotation = new Quaternion(0.0f, transform.rotation.y, 0.0f, transform.rotation.w);