Version: 2018.2
public static float Dot (Quaternion a, Quaternion b);

Description

The dot product between two rotations.

using UnityEngine;

public class Example : MonoBehaviour { void Start() { print(Quaternion.Dot(transform.rotation, Quaternion.identity)); } }