본문 바로가기
NOTE/SaveSource

[SaveSource] WebcamTexture

by DevAthena 2016. 11. 2.
public class WebcamBackground : MonoBehaviour {
    private RawImage image;
    private WebCamTexture cam;

    void Start()
    {
        image = GetComponent<rawimage>();
        cam = new WebCamTexture(Screen.width, Screen.height);
        image.texture = cam;
        cam.Play();
    }
}

'NOTE > SaveSource' 카테고리의 다른 글

[SaveSource] 만보기소스(펌)  (0) 2016.11.09
[Source Save] GyhroCameraMove.cs  (0) 2016.11.09
[Source Save] MobileSensorManager.cs  (0) 2016.11.01
[Source Save] TouchCameraMove.cs  (0) 2016.10.31
[Source Save] InputTouchManager.cs  (0) 2016.10.27