###前提・実現したいこと
UnityでWebカメラの映像を出力したい。
###発生している問題・エラーメッセージ
Assets/WebCamTexture.cs(11,42): error CS0117: `WebCamTexture' does not contain a definition for `devices'
###該当のソースコード
C#
1```using System.Collections; 2using System.Collections.Generic; 3using UnityEngine; 4 5public class WebCamTexture : MonoBehaviour { 6 7 8 // Use this for initialization 9 void Start () { 10 11 WebCamDevice[] devices = WebCamTexture.devices; 12 Debug.Log (devices[0].name); 13 14 } 15 16 // Update is called once per frame 17 void Update () { 18 19 } 20} 21 22 23 24 25###補足情報(言語/FW/ツール等のバージョンなど) 26Unity2017.2.0f3
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/10/28 12:22