Hi, how to get the transform of gameobject in matrix form, i.e. position rotation scale.
You can get the matrices from the transform itself:
transform.worldToLocalMatrix
transform.localToWorldMatrix
It is quite rare when working with these matrices directly is necessary, though. Depending on your problem, you are likely better off using the TransformPoint, TransformDirection, InverseTransformPoint and InverseTransformDirection functions.