Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


isPlaying

Returns if the camera is currently playing.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.AudioModule
public bool isPlaying { get; }

Examples

using UnityEngine;public class Example : MonoBehaviour{ // Tries to start the camera and outputs to the console if is was sucessful or not. void Start() { WebCamTexture webcamTexture = new WebCamTexture(); webcamTexture.Play(); Debug.Log(webcamTexture.isPlaying); }}