Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


type

Type of the property (Read Only).
Read time 1 minuteLast updated 6 days ago

Definition

  • Type: Property
  • Namespace: UnityEditor
  • Assembly: UnityEditor
public MaterialProperty.PropType type { get; }

Remarks

Material properties can be textures, colors, floats and so on. Depending on the type, you should use MaterialProperty.textureValue, MaterialProperty.colorValue, MaterialProperty.vectorValue or MaterialProperty.floatValue to access the property value.