文档

Unity Engine

Unity Engine

DrawCookieProperty(SerializedProperty, GUIContent, LightType)

Draws a LightEditor cookie widget.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
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.