文档

Unity Engine

Unity Engine

isPlaying

Returns if the camera is currently playing.
阅读时间1 分钟最后更新于 6 小时前

Definition

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