기술 자료

Unity Engine

Unity Engine

ColorProperty

Draw a property field for a color shader property.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor

ColorProperty(MaterialProperty, string)

Draw a property field for a color shader property.
public Color ColorProperty(MaterialProperty prop, string label)

Parameters


label

Label for the property.

Returns

Type

Description

Color

ColorProperty(Rect, MaterialProperty, string)

Draw a property field for a color shader property.
public Color ColorProperty(Rect position, MaterialProperty prop, string label)

Parameters

position



label

Label for the property.

Returns

Type

Description

Color

ColorProperty(string, string)

Draw a property field for a color shader property.
경고
Deprecated. Use ColorProperty with MaterialProperty instead.
public Color ColorProperty(string propertyName, string label)

Parameters

propertyName


label

Label for the property.

Returns

Type

Description

Color