# DrawCookieProperty(SerializedProperty, GUIContent, LightType)

> Draws a LightEditor cookie widget.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor](/engine/6000.0/script-reference/unityeditor.md)
* **Assembly:** UnityEditor

```csharp
public void DrawCookieProperty(SerializedProperty cookieProperty, GUIContent content, LightType cookieLightType)
```

### Parameters

**** (\[SerializedProperty]\(/engine/6000.0/script-reference/unityeditor/serializedproperty)): The [SerializedProperty](/engine/6000.0/script-reference/unityeditor/serializedproperty.md) that the cookie widget displays and can assign to.**** (\[GUIContent]\(/engine/6000.0/script-reference/unityengine/guicontent)): A new [GUIContent](/engine/6000.0/script-reference/unityengine/guicontent.md) to display in front of the object picker. Use this to display a label.**** (\[LightType]\(/engine/6000.0/script-reference/unityengine/lighttype)): The [LightType](/engine/6000.0/script-reference/unityengine/lighttype.md) to use for this widget.
