ignore parenting gameobject pour rotation camera

Hello everyone

I am looking for a syntax for my camera does not follow my rotating character in rotation angle of my 3D character

here is my player rotation script that I use

GetComponent<Transform>().eulerAngles = new Vector3(0, 90, 0);

I want my camera to rotate relative to my character and follow it, but not to follow the angle of view

You can forcibly set transform.rotation to some constant value in LateUpdate, or you can unparent the camera and set its position using parentTransform.TransformPoint(position)

thanks a lot for your help

I have could use this syntax on the player here is the script

public Transform AnglePlayer;


                               void Start () {
                AnglePlayer = GameObject.Find ("Main Camera").GetComponent<Transform> ();
}

void LateUpdate () {

gameObject.transform.parent.TransformPoint (AnglePlayer.transform.localPosition , 0 , 0, 0 );

}

but I have this error

error CS1501: No overload for method TransformPoint' takes 4’ arguments