Version: 2017.1
public bool isPlaying ;

描述

返回摄像机当前是否正在运行。

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { void Start() { WebCamTexture webcamTexture = new WebCamTexture(); webcamTexture.Play(); Debug.Log(webcamTexture.isPlaying); } }