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

Description

The dot product between two rotations.

using UnityEngine;
using System.Collections;

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