Programmer:)
[Unity] WebCam 본문
반응형
public class WebCam : MonoBehaviour {
public RawImage rawImage;
private WebCamTexture webCam;
private void Awake()
{
rawImage = this.GetComponent<RawImage>();
}
private void Start()
{
webCam = new WebCamTexture();
rawImage.texture = webCam;
webCam.Play();
Debug.Log("WebCam ok!");
}
private void OnDisable()
{
webCam.Stop();
}
}
meshRenderer로 했을때 화면 리버스를 어떻게 해야할까... 고민중
반응형
'DEV > Unity' 카테고리의 다른 글
[Unity] 2019.01 VR shooting Hit (0) | 2020.03.16 |
---|---|
[Unity] 2018.12 부산 BJFEZ 간단한 정보 키오스크 (0) | 2020.03.16 |
[Unity] 2018.12 부산 BJFEZ (0) | 2020.02.25 |
[Unity] 2018.11 Tiger Roar Kiosk (0) | 2020.02.20 |
[Unity] Vuforia Live Manual Test (0) | 2020.02.20 |
Comments