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
 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