webcam
-
[3D] WebCam 구현Unity(유니티) 2022. 5. 4. 10:29
MainCamera를 포함한 GameObject에 아래 스크립트를 적용시켜주고 RawImage를 생성해서 참조 using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class WebCam : MonoBehaviour { public RawImage display; //UI WebCamTexture camTexture; //웹캠 저장용 텍스처 private int currentIndex = 0; //디바이스상 카메라 찾기 위한 인덱스 // Start is called before the first frame update void Start() { WebCamDevice..