Version: 2022.1
言語: 日本語
public bool isPlaying ;

説明

カメラが再生中かどうか

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); } }