Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


DrawCookieProperty(SerializedProperty, GUIContent, LightType)

Draws a LightEditor cookie widget.
Read time 1 minuteLast updated 8 days ago

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor
public void DrawCookieProperty(SerializedProperty cookieProperty, GUIContent content, LightType cookieLightType)

Parameters

cookieProperty

The SerializedProperty that the cookie widget displays and can assign to.

content

A new GUIContent to display in front of the object picker. Use this to display a label.

cookieLightType

The LightType to use for this widget.