UnityEngine.WebCamTexture.Play C# (CSharp) Method

Play() public method

Starts the camera.

public Play ( ) : void
return void
        public void Play()
        {
            INTERNAL_CALL_Play(this);
        }

Usage Example

コード例 #1
4
ファイル: CameraController.cs プロジェクト: tsi25/Alfred
 void Start()
 {
     mCamera = new WebCamTexture ();
     mCamera.Play ();
     gameObject.GetComponent<Renderer> ().material.mainTexture = mCamera;
     if(!mCamera.isPlaying) mCamera.Play ();
 }
All Usage Examples Of UnityEngine.WebCamTexture::Play