Get the world-space speed of the camera (Read Only).
function Update () { print ("Camera moving at " + camera.velocity.magnitude + " m/s"); }
using UnityEngine; using System.Collections; public class Example : MonoBehaviour { void Update() { print("Camera moving at " + camera.velocity.magnitude + " m/s"); } }
import UnityEngine import System.Collections public class Example(MonoBehaviour): def Update() as void: print((('Camera moving at ' + camera.velocity.magnitude) + ' m/s'))