文档

Unity Engine

Unity Engine

type

Type of the property (Read Only).
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Property
  • Namespace: UnityEditor
  • Assembly: UnityEditor
警告
Deprecated. The 'type' property is deprecated. Please use 'propertyType' instead.
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.