返回摄像机当前是否正在运行。
using UnityEngine;
using System.Collections;
public class ExampleClass : MonoBehaviour {
void Start() {
WebCamTexture webcamTexture = new WebCamTexture();
webcamTexture.Play();
Debug.Log(webcamTexture.isPlaying);
}
}