기술 자료

Unity Engine

Unity Engine

VectorProperty

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

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule

VectorProperty(MaterialProperty, string)

Draw a property field for a vector shader property.
public Vector4 VectorProperty(MaterialProperty prop, string label)

Parameters


label

Label for the field.

Returns

Type

Description

Vector4

VectorProperty(MaterialProperty, GUIContent)

Draw a property field for a vector shader property.
public Vector4 VectorProperty(MaterialProperty prop, GUIContent label)

Parameters


Label for the field.

Returns

Type

Description

Vector4

VectorProperty(Rect, MaterialProperty, string)

Draw a property field for a vector shader property.
public Vector4 VectorProperty(Rect position, MaterialProperty prop, string label)

Parameters

position



label

Label for the field.

Returns

Type

Description

Vector4

VectorProperty(Rect, MaterialProperty, GUIContent)

Draw a property field for a vector shader property.
public Vector4 VectorProperty(Rect position, MaterialProperty prop, GUIContent label)

Parameters

position



Label for the field.

Returns

Type

Description

Vector4

VectorProperty(string, string)

Draw a property field for a vector shader property.
경고
Deprecated. Use VectorProperty with MaterialProperty instead.
public Vector4 VectorProperty(string propertyName, string label)

Parameters

propertyName


label

Label for the field.

Returns

Type

Description

Vector4