Unity 6.3
0 онлайн 59 гостей 3 в системе
Вход

WebCamTexture.isPlaying

Declaration

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