ドキュメント

Unity Engine

Unity Engine

propertyType

The type of the property.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Property
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
public ShaderPropertyType propertyType { get; }

Remarks

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