Quaternion.ToString Manual     Reference     Scripting  
Scripting > Runtime Classes > Quaternion
Quaternion.ToString

function ToString () : string

function ToString (format : string) : string

Description

Returns a nicely formatted string of the Quaternion

JavaScripts
using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
void Awake() {
print(Quaternion.identity);
}
}

import UnityEngine
import System.Collections

class example(MonoBehaviour):

def Awake():
print(Quaternion.identity)