Check out example codes for "c# get z axis of quaternion". It will help you in understanding the concepts better.

Code Example 1

Quaternion quart = Quarternion.Euler(0,30,0);
//Print z-Axis of Quaternion
Debug.Log(quart.eulerAngles.z);

Learn ReactJs, React Native from akashmittal.com