title: Copying all the transform values of a gameObject?
body: <p>Is there a way to copy the transform values (position, rotation, scaling) of a gameObject in script. I do not want to copy each transform values separately as given below in the script. </p>
  
  <pre><code>public GameObject Obj02;
  public GameObject Obj04;
  private Vector3 positionOfObj02;
  private Vector3 rotationOfObj02;
  private Vector3 positionOfObj04;
  private Vector3 rotationOfObj04;
  
  void Start()
  {
      positionOfObj02 = Obj02.transform.localPosition;
      rotationOfObj02 = Obj02.transform.localEulerAngles;
  
      positionOfObj04 = Obj04.transform.localPosition;
      rotationOfObj04 = Obj04.transform.localEulerAngles;
  }
  </code></pre>