# Play()

> Starts the camera.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine](/engine/6000.0/script-reference/unityengine.md)
* **Assembly:** UnityEngine.AudioModule

```csharp
public void Play()
```

### Remarks

Call [Application.RequestUserAuthorization](/engine/6000.0/script-reference/unityengine/application/requestuserauthorization.md) before creating a WebCamTexture.

### Examples

```csharp
// Starts the default camera and assigns the texture to the current renderer
using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour
{
    void Start()
    {
        WebCamTexture webcamTexture = new WebCamTexture();
        Renderer renderer = GetComponent<Renderer>();
        renderer.material.mainTexture = webcamTexture;
        webcamTexture.Play();
    }
}
```
