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

JavaScript
print(Quaternion.identity);

using UnityEngine;
using System.Collections;

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

import UnityEngine
import System.Collections

class example(MonoBehaviour):

def Example():
print(Quaternion.identity)