Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


VectorProperty

Draw a property field for a vector shader property.
Read time 1 minuteLast updated 5 days ago

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.
Warning
Deprecated. Use VectorProperty with MaterialProperty instead.
public Vector4 VectorProperty(string propertyName, string label)

Parameters

propertyName


label

Label for the field.

Returns

Type

Description

Vector4